Explorar el Código

stop a big memory leak: we were leaking the whole contents
of cached-routers.new every time we read it.


svn:r8236

Roger Dingledine hace 19 años
padre
commit
94afe807ac
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/or/routerlist.c

+ 1 - 0
src/or/routerlist.c

@@ -358,6 +358,7 @@ router_reload_router_list(void)
     stat(fname, &st);
     router_load_routers_from_string(contents,
                                     SAVED_IN_JOURNAL, NULL);
+    tor_free(contents);
   }
 
   tor_free(fname);