summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
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;
}