talloc: use _talloc_free_internal() in talloc_free_children()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Apr 2011 10:27:05 +0000 (12:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 May 2011 07:46:04 +0000 (09:46 +0200)
metze

lib/talloc/talloc.c

index 95534052bc85d2c99680976acad1567c4fcc82d6..31308589af1b09455220185c1b1eedaa80d1af03 100644 (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);