diff options
author | Swen Schillig <swen@linux.ibm.com> | 2019-08-15 14:43:22 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-08-21 07:20:39 +0000 |
commit | fc4ad5b6dfdcfb859f92dcca868a043e31a051b0 (patch) | |
tree | 08b675fd249b383e31afa42bcef38245e6edbf17 /lib | |
parent | d0933ec62c113a6da5209a556fad8819febe4ec2 (diff) | |
download | samba-fc4ad5b6dfdcfb859f92dcca868a043e31a051b0.tar.gz |
talloc: ASAN fix for test_magic_protection
Direct leak of 1152 byte(s) in 1 object(s) allocated from:
#0 0x7f06393dfc08 in __interceptor_malloc (/lib64/libasan.so.5+0xefc08)
#1 0x7f06392cfd59 in __talloc_with_prefix ../../talloc.c:782
#2 0x7f06392cfd59 in _talloc_pool ../../talloc.c:837
#3 0x7f06392cfd59 in talloc_pool ../../talloc.c:859
#4 0x40b83c in test_magic_protection ../../testsuite.c:1960
#5 0x40b83c in torture_local_talloc ../../testsuite.c:2164
#6 0x402603 in main ../../testsuite_main.c:32
#7 0x7f063908a412 in __libc_start_main (/lib64/libc.so.6+0x24412)
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/talloc/testsuite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/talloc/testsuite.c b/lib/talloc/testsuite.c index ffede68f52a..aa5c771ea31 100644 --- a/lib/talloc/testsuite.c +++ b/lib/talloc/testsuite.c @@ -1999,6 +1999,8 @@ static bool test_magic_protection(void) while (wait(&exit_status) != pid); + talloc_free(pool); /* make ASAN happy */ + if (!WIFEXITED(exit_status)) { printf("Child exited through unexpected abnormal means\n"); return false; |