summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/policies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 5afe3186b1..8af322440e 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -1175,7 +1175,7 @@ policy_summarize(smartlist_t *policy)
final_size = strlen(prefix)+1+shorter_len+1;
tor_assert(final_size <= MAX_EXITPOLICY_SUMMARY_LEN+1);
- result = malloc(final_size);
+ result = tor_malloc(final_size);
tor_snprintf(result, final_size, "%s %s", prefix, shorter_str);
cleanup: