diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-18 15:00:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-18 15:00:09 +0000 |
commit | 9c3d17ebb54cf408bc12fa08376e3bc784ffb8ab (patch) | |
tree | 91ae3cbd8165332f0dd0eb4c99ed04404a9b615b /src/common | |
parent | 290b6f54a349d8b7d66b2861faf8de7b4e17ceda (diff) | |
download | tor-9c3d17ebb54cf408bc12fa08376e3bc784ffb8ab.tar.gz tor-9c3d17ebb54cf408bc12fa08376e3bc784ffb8ab.zip |
Fix a small memory leak of around 32 bytes per TLS connection opened. Bugfix on 0.2.1.1-alpha.
svn:r17678
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/tortls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index ec59d67ae6..0d9a5defe0 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -825,6 +825,7 @@ tor_tls_new(int sock, int isServer) { char *fake_hostname = crypto_random_hostname(4,25, "www.",".com"); SSL_set_tlsext_host_name(result->ssl, fake_hostname); + tor_free(fake_hostname); } #endif |