浏览代码

Fix leak in test_util.c

AddressSanitizer found a leak in test_util_decompress_dos_impl().
Fixes bug #23691.
Taylor Yu 6 年之前
父节点
当前提交
2ae1b7e2db
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/test/test_util.c

+ 1 - 0
src/test/test_util.c

@@ -2578,6 +2578,7 @@ test_util_decompress_dos_impl(compress_method_t method)
 
  done:
   teardown_capture_of_logs();
+  tor_free(input);
   tor_free(result);
   tor_free(result2);
 }