[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17671: {tor} fix a minor memory leak if we start up as a relay but don't (tor/trunk/src/or)
Author: arma
Date: 2008-12-18 00:15:11 -0500 (Thu, 18 Dec 2008)
New Revision: 17671
Modified:
tor/trunk/src/or/networkstatus.c
Log:
fix a minor memory leak if we start up as a relay but don't
have any files in the cached-status/ directory
Modified: tor/trunk/src/or/networkstatus.c
===================================================================
--- tor/trunk/src/or/networkstatus.c 2008-12-18 04:47:24 UTC (rev 17670)
+++ tor/trunk/src/or/networkstatus.c 2008-12-18 05:15:11 UTC (rev 17671)
@@ -131,6 +131,7 @@
} else if (!smartlist_len(entries) && maybe_delete) {
rmdir(filename);
tor_free(filename);
+ smartlist_free(entries);
return 0;
}
tor_free(filename);