From 64fdcda0c79acfaec0045743dab97c4a24360a20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20B=C5=99ezina?= Date: Mon, 16 Apr 2012 15:23:55 +0200 Subject: [PATCH] Talloc doc: talloc_pool() when not enough memory in the pool --- lib/talloc/talloc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h index 09a2b81768e..5d905073b43 100644 --- a/lib/talloc/talloc.h +++ b/lib/talloc/talloc.h @@ -827,6 +827,10 @@ void *talloc_find_parent_bytype(const void *ptr, #type); * recursively. If you use the child of the talloc pool as a parent for * grand-children, their memory is also taken from the talloc pool. * + * If there is not enough memory in the pool to allocate the new child, + * it will create a new talloc chunk as if the parent was a normal talloc + * context. + * * If you talloc_free() children of a talloc pool, the memory is not given * back to the system. Instead, free(3) is only called if the talloc_pool() * itself is released with talloc_free(). -- 2.11.4.GIT