Explorar o 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 %!s(int64=17) %!d(string=hai) anos
pai
achega
7b5be147ee
Modificáronse 1 ficheiros con 1 adicións e 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);