Przeglądaj źródła

Bugfix on r11138:
Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
command. Bugfix on 0.2.0.5-alpha.
Backport candidate.


svn:r11864

Roger Dingledine 16 lat temu
rodzic
commit
541aa72155
2 zmienionych plików z 3 dodań i 0 usunięć
  1. 2 0
      ChangeLog
  2. 1 0
      src/or/control.c

+ 2 - 0
ChangeLog

@@ -95,6 +95,8 @@ Changes in version 0.2.0.8-alpha - 2007-10-12
       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.

+ 1 - 0
src/or/control.c

@@ -2456,6 +2456,7 @@ handle_control_protocolinfo(control_connection_t *conn, uint32_t len,
                              cookies?" COOKIEFILE=":"",
                              cookies?esc_cfile:"",
                              escaped(VERSION));
+    tor_free(methods);
     tor_free(cfile);
     tor_free(esc_cfile);
   }