Skip to content

Commit

Permalink
talloc: ASAN fix for test_realloc_on_destructor_parent
Browse files Browse the repository at this point in the history
Direct leak of 96 byte(s) in 1 object(s) allocated from:
    #0 0x7fd52c00dc08 in __interceptor_malloc (/lib64/libasan.so.5+0xefc08)
    samba-team#1 0x7fd52befec45 in __talloc_with_prefix ../../talloc.c:782
    samba-team#2 0x7fd52befec45 in __talloc ../../talloc.c:824
    samba-team#3 0x7fd52befec45 in _talloc_named_const ../../talloc.c:981
    samba-team#4 0x7fd52befec45 in talloc_named_const ../../talloc.c:1748
    samba-team#5 0x4099bd in test_realloc_on_destructor_parent ../../testsuite.c:1000
    samba-team#6 0x4099bd in torture_local_talloc ../../testsuite.c:2129
    samba-team#7 0x402603 in main ../../testsuite_main.c:32
    samba-team#8 0x7fd52bcb8412 in __libc_start_main (/lib64/libc.so.6+0x24412)

Signed-off-by: Swen Schillig <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: Matthias Dieter Wallnöfer <[email protected]>
  • Loading branch information
sswen authored and abartlet committed Aug 21, 2019
1 parent f42642e commit 616646a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/talloc/testsuite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,8 @@ static bool test_realloc_on_destructor_parent(void)


printf("success: free_for_exit\n");
talloc_free(top); /* make ASAN happy */

return true;
}

Expand Down

0 comments on commit 616646a

Please sign in to comment.