Explorar el Código

fix a minor memory leak if we start up as a relay but don't
have any files in the cached-status/ directory


svn:r17671

Roger Dingledine hace 17 años
padre
commit
7b5be147ee
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/or/networkstatus.c

+ 1 - 0
src/or/networkstatus.c

@@ -131,6 +131,7 @@ router_reload_v2_networkstatus(void)
   } else if (!smartlist_len(entries) && maybe_delete) {
     rmdir(filename);
     tor_free(filename);
+    smartlist_free(entries);
     return 0;
   }
   tor_free(filename);