r15824: fixed a subtle talloc bug to do with memory context loops. When you
authorAndrew Tridgell <tridge@samba.org>
Tue, 23 May 2006 03:51:44 +0000 (03:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:28 +0000 (14:08 -0500)
commit5da75f5c3631247615efdf73fae2481df6908cb8
tree4eb12992cb255312ef70f0d8dafee7f65a8e9328
parent495652fe24da009bdef839be9eb543837ecaab04
r15824: fixed a subtle talloc bug to do with memory context loops. When you
have a structure that references one of its parents, and a parent of
that parent is freed, then the whole structure should be freed, not
just the reference.

this was found by the change notify code, as a side effect of fixing
the memory leak yesterday
(This used to be commit 70531dcaeeb9314d410baa0d285df6a265311541)
source4/lib/talloc/talloc.c
source4/lib/talloc/talloc.h
source4/lib/talloc/testsuite.c