[or-cvs] r10829: fix a memory leak from r10504 (i think) (tor/trunk/src/or)

arma at seul.org arma at seul.org
Sun Jul 15 08:11:56 UTC 2007


Author: arma
Date: 2007-07-15 04:11:56 -0400 (Sun, 15 Jul 2007)
New Revision: 10829

Modified:
   tor/trunk/src/or/connection.c
Log:
fix a memory leak from r10504 (i think)


Modified: tor/trunk/src/or/connection.c
===================================================================
--- tor/trunk/src/or/connection.c	2007-07-15 02:35:25 UTC (rev 10828)
+++ tor/trunk/src/or/connection.c	2007-07-15 08:11:56 UTC (rev 10829)
@@ -1261,6 +1261,7 @@
 
         if (listensockaddr) {
           conn = connection_create_listener(listensockaddr, type, address);
+          tor_free(listensockaddr);
           tor_free(address);
         } else
           conn = NULL;
@@ -1271,7 +1272,7 @@
           if (new_conns)
             smartlist_add(new_conns, conn);
         }
-    });
+      });
   }
 
   if (free_launch_elts) {



More information about the tor-commits mailing list