Fix a malloc that should have been a tor_malloc

svn:r16780
This commit is contained in:
Nick Mathewson 2008-09-05 20:53:39 +00:00
parent 0b8117a5c0
commit d5b2dab31d

View File

@ -1175,7 +1175,7 @@ policy_summarize(smartlist_t *policy)
final_size = strlen(prefix)+1+shorter_len+1; final_size = strlen(prefix)+1+shorter_len+1;
tor_assert(final_size <= MAX_EXITPOLICY_SUMMARY_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); tor_snprintf(result, final_size, "%s %s", prefix, shorter_str);
cleanup: cleanup: