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:
parent
37b2130ed9
commit
f3b855d2ff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user