[or-cvs] r10830: backport candidate: fix a memory leak from r9039 which had u (tor/trunk/src/or)

arma at seul.org arma at seul.org
Sun Jul 15 08:34:32 UTC 2007


Author: arma
Date: 2007-07-15 04:34:32 -0400 (Sun, 15 Jul 2007)
New Revision: 10830

Modified:
   tor/trunk/src/or/routerlist.c
Log:
backport candidate: fix a memory leak from r9039 which had us leaking
50ish bytes every time we rebuild the cached-router files.


Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-07-15 08:11:56 UTC (rev 10829)
+++ tor/trunk/src/or/routerlist.c	2007-07-15 08:34:32 UTC (rev 10830)
@@ -501,6 +501,7 @@
   if (signed_descriptors)
     smartlist_free(signed_descriptors);
   tor_free(fname);
+  tor_free(fname_tmp);
   SMARTLIST_FOREACH(chunk_list, sized_chunk_t *, c, tor_free(c));
   smartlist_free(chunk_list);
 



More information about the tor-commits mailing list