summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-12-18 05:15:11 +0000
committerRoger Dingledine <arma@torproject.org>2008-12-18 05:15:11 +0000
commit7b5be147ee8ddbbddf866cb94600fde65f12f621 (patch)
treee61518ff7620490658e1fe5265f91e55df4a6f23 /src/or/networkstatus.c
parentd597b23c421333d4f2f65870694b77510d8fb01e (diff)
downloadtor-7b5be147ee8ddbbddf866cb94600fde65f12f621.tar.gz
tor-7b5be147ee8ddbbddf866cb94600fde65f12f621.zip
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
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 25db1e6dec..e1488adfcb 100644
--- a/src/or/networkstatus.c
+++ b/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);