Browse Source

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 15 years ago
parent
commit
7b5be147ee
1 changed files with 1 additions and 0 deletions
  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);