[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix leak in test_util.c



commit 2ae1b7e2db4eafa4270cfcbf014412abea45b969
Author: Taylor Yu <catalyst@xxxxxxxxxxxxxx>
Date:   Thu Sep 28 17:53:38 2017 -0500

    Fix leak in test_util.c
    
    AddressSanitizer found a leak in test_util_decompress_dos_impl().
    Fixes bug #23691.
---
 src/test/test_util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index 162f6fbc0..475fbed1e 100644
--- a/src/test/test_util.c
+++ b/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);
 }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits