From 9c3d17ebb54cf408bc12fa08376e3bc784ffb8ab Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 18 Dec 2008 15:00:09 +0000 Subject: [PATCH] Fix a small memory leak of around 32 bytes per TLS connection opened. Bugfix on 0.2.1.1-alpha. svn:r17678 --- src/common/tortls.c | 1 + 1 file changed, 1 insertion(+) 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