Преглед на файлове

Fix a small memory leak of around 32 bytes per TLS connection opened. Bugfix on 0.2.1.1-alpha.

svn:r17678
Nick Mathewson преди 17 години
родител
ревизия
9c3d17ebb5
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/common/tortls.c

+ 1 - 0
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