1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

talloc: use _talloc_free_internal() in talloc_free_children()

metze
This commit is contained in:
Stefan Metzmacher 2011-04-08 12:27:05 +02:00
parent 37b2130ed9
commit f3b855d2ff

View File

@ -1291,7 +1291,7 @@ _PUBLIC_ void talloc_free_children(void *ptr)
struct talloc_chunk *p = talloc_parent_chunk(tc->child->refs);
if (p) new_parent = TC_PTR_FROM_CHUNK(p);
}
if (unlikely(talloc_free(child) == -1)) {
if (unlikely(_talloc_free_internal(child, __location__) == -1)) {
if (new_parent == null_context) {
struct talloc_chunk *p = talloc_parent_chunk(ptr);
if (p) new_parent = TC_PTR_FROM_CHUNK(p);