diff options
author | Roger Dingledine <arma@torproject.org> | 2008-12-18 05:15:11 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-12-18 05:15:11 +0000 |
commit | 7b5be147ee8ddbbddf866cb94600fde65f12f621 (patch) | |
tree | e61518ff7620490658e1fe5265f91e55df4a6f23 /src/or/networkstatus.c | |
parent | d597b23c421333d4f2f65870694b77510d8fb01e (diff) | |
download | tor-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.c | 1 |
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); |