]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix leak in test_util.c
authorTaylor Yu <catalyst@torproject.org>
Thu, 28 Sep 2017 22:53:38 +0000 (17:53 -0500)
committerTaylor Yu <catalyst@torproject.org>
Thu, 28 Sep 2017 22:53:38 +0000 (17:53 -0500)
AddressSanitizer found a leak in test_util_decompress_dos_impl().
Fixes bug #23691.

src/test/test_util.c

index 162f6fbc0a2e42c5fa17c0f5ef5799a7bbd98f04..475fbed1e58c29685dd1ea61aae9996af7378179 100644 (file)
@@ -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);
 }