[or-cvs] r11864: Bugfix on r11138: Fix a minor memory leak whenever a control (in tor/trunk: . src/or)

arma at seul.org arma at seul.org
Thu Oct 11 03:27:47 UTC 2007


Author: arma
Date: 2007-10-10 23:27:47 -0400 (Wed, 10 Oct 2007)
New Revision: 11864

Modified:
   tor/trunk/ChangeLog
   tor/trunk/src/or/control.c
Log:
Bugfix on r11138:
Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
command. Bugfix on 0.2.0.5-alpha.
Backport candidate.


Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2007-10-11 03:10:52 UTC (rev 11863)
+++ tor/trunk/ChangeLog	2007-10-11 03:27:47 UTC (rev 11864)
@@ -95,6 +95,8 @@
       file. Bugfix on 0.2.0.7-alpha.
     - Fix a minor memory leak whenever we wrote out a file. Bugfix on
       0.2.0.7-alpha.
+    - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
+      command. Bugfix on 0.2.0.5-alpha.
 
   o Code simplifications and refactoring:
     - Make a bunch of functions static.  Remove some dead code.

Modified: tor/trunk/src/or/control.c
===================================================================
--- tor/trunk/src/or/control.c	2007-10-11 03:10:52 UTC (rev 11863)
+++ tor/trunk/src/or/control.c	2007-10-11 03:27:47 UTC (rev 11864)
@@ -2456,6 +2456,7 @@
                              cookies?" COOKIEFILE=":"",
                              cookies?esc_cfile:"",
                              escaped(VERSION));
+    tor_free(methods);
     tor_free(cfile);
     tor_free(esc_cfile);
   }



More information about the tor-commits mailing list