mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix a malloc that should have been a tor_malloc
svn:r16780
This commit is contained in:
parent
0b8117a5c0
commit
d5b2dab31d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user