From: Nick Mathewson Date: Fri, 5 Sep 2008 20:53:39 +0000 (+0000) Subject: Fix a malloc that should have been a tor_malloc X-Git-Tag: tor-0.2.1.6-alpha~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5b2dab31ddf5f58179a82e56879a9d6e8d01021;p=thirdparty%2Ftor.git Fix a malloc that should have been a tor_malloc svn:r16780 --- 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: