[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17678: {tor} Fix a small memory leak of around 32 bytes per TLS connectio (tor/trunk/src/common)
Author: nickm
Date: 2008-12-18 10:00:09 -0500 (Thu, 18 Dec 2008)
New Revision: 17678
Modified:
tor/trunk/src/common/tortls.c
Log:
Fix a small memory leak of around 32 bytes per TLS connection opened. Bugfix on 0.2.1.1-alpha.
Modified: tor/trunk/src/common/tortls.c
===================================================================
--- tor/trunk/src/common/tortls.c 2008-12-18 06:12:19 UTC (rev 17677)
+++ tor/trunk/src/common/tortls.c 2008-12-18 15:00:09 UTC (rev 17678)
@@ -825,6 +825,7 @@
{
char *fake_hostname = crypto_random_hostname(4,25, "www.",".com");
SSL_set_tlsext_host_name(result->ssl, fake_hostname);
+ tor_free(fake_hostname);
}
#endif