From 6c3e8a0a9f0636467af5678c04d5aecc9c3dbf7a Mon Sep 17 00:00:00 2001 From: Swen Schillig Date: Thu, 15 Aug 2019 14:36:59 +0200 Subject: talloc: ASAN fix for test_pool_nest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Direct leak of 96 byte(s) in 1 object(s) allocated from: #0 0x7f06393dfc08 in __interceptor_malloc (/lib64/libasan.so.5+0xefc08) #1 0x7f06392d0c45 in __talloc_with_prefix ../../talloc.c:782 #2 0x7f06392d0c45 in __talloc ../../talloc.c:824 #3 0x7f06392d0c45 in _talloc_named_const ../../talloc.c:981 #4 0x7f06392d0c45 in talloc_named_const ../../talloc.c:1748 #5 0x40901e in test_pool_nest ../../testsuite.c:1451 #6 0x40901e in torture_local_talloc ../../testsuite.c:2096 #7 0x402603 in main ../../testsuite_main.c:32 #8 0x7f063908a412 in __libc_start_main (/lib64/libc.so.6+0x24412) Signed-off-by: Swen Schillig Reviewed-by: Andrew Bartlett Reviewed-by: Matthias Dieter Wallnöfer --- lib/talloc/testsuite.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/talloc/testsuite.c') diff --git a/lib/talloc/testsuite.c b/lib/talloc/testsuite.c index c119884fd55..d936d18c2ae 100644 --- a/lib/talloc/testsuite.c +++ b/lib/talloc/testsuite.c @@ -1468,6 +1468,8 @@ static bool test_pool_nest(void) talloc_free(p1); + talloc_free(e); /* make ASAN happy */ + return true; } -- cgit v1.2.1