talloc: there is no ambiguity when freeing a ptr with a null parent
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 Apr 2010 05:30:57 +0000 (15:30 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 Apr 2010 05:50:27 +0000 (15:50 +1000)
commit45be1c7ba4382d85c742a241687bbc6d5a2ebd8c
treec9fabbf2b9566bad59f7d87d7461d7cff78396fa
parent773a8afbba27a5e2e48577100f3ca9873b506615
talloc: there is no ambiguity when freeing a ptr with a null parent

when a ptr has a single reference and a NULL parent, then
talloc_free(ptr) is not ambiguous, as the caller could not have done a
talloc_free(NULL) to free the memory

Pair-Programmed-With: Rusty Russell <rusty@samba.org>
lib/talloc/ABI/talloc-2.0.3.sigs [new file with mode: 0644]
lib/talloc/configure.ac
lib/talloc/talloc.c
lib/talloc/testsuite.c
lib/talloc/wscript
source4/min_versions.m4