summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-09-05 20:52:15 +0000
committerNick Mathewson <nickm@torproject.org>2008-09-05 20:52:15 +0000
commit0b8117a5c002b262b6ee56acc3719700637416c7 (patch)
tree73746b443d10620630933d7de5d0f467378fb5d7 /src/or/policies.c
parent4d94e061c7a1af2fbb92ab3114c3ce5f59971a31 (diff)
downloadtor-0b8117a5c002b262b6ee56acc3719700637416c7.tar.gz
tor-0b8117a5c002b262b6ee56acc3719700637416c7.zip
Fix numerous memory leaks: some were almost impossible to trigger, and some almost inevitable.
svn:r16779
Diffstat (limited to 'src/or/policies.c')
-rw-r--r--src/or/policies.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 02c408fec2..5afe3186b1 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -1181,15 +1181,15 @@ policy_summarize(smartlist_t *policy)
cleanup:
/* cleanup */
SMARTLIST_FOREACH(summary, policy_summary_item_t *, s, tor_free(s));
- smartlist_clear(summary);
+ smartlist_free(summary);
tor_free(accepts_str);
SMARTLIST_FOREACH(accepts, char *, s, tor_free(s));
- smartlist_clear(accepts);
+ smartlist_free(accepts);
tor_free(rejects_str);
SMARTLIST_FOREACH(rejects, char *, s, tor_free(s));
- smartlist_clear(rejects);
+ smartlist_free(rejects);
return result;
}