瀏覽代碼

Fix a malloc that should have been a tor_malloc

svn:r16780
Nick Mathewson 17 年之前
父節點
當前提交
d5b2dab31d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/policies.c

+ 1 - 1
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: