talloc: demonstrate memory leak in test_talloc_free_in_destructor()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Apr 2011 10:15:42 +0000 (12:15 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 May 2018 08:09:24 +0000 (10:09 +0200)
commit2bb8a2333d9dc985df74e890a5fb006f2d28b428
treec47690a2108c35766cf13aca4cdc3a3e6cccc801
parent16ff86963c8dd65b6175f6edda4a41d37ab92ffa
talloc: demonstrate memory leak in test_talloc_free_in_destructor()

The problem is that level3 disappears, it's not reachable from
the null_context anymore. level3 and level5 get into a parent child loop.

I think the correct fix should be that level0 becomes the parent
of level3 after talloc_free(level1).

metze
lib/talloc/testsuite.c