Talloc doc: talloc_pool() when not enough memory in the pool
authorPavel Březina <pbrezina@redhat.com>
Mon, 16 Apr 2012 13:23:55 +0000 (15:23 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 18 Apr 2012 08:27:17 +0000 (10:27 +0200)
lib/talloc/talloc.h

index 09a2b81768e5170e03611b6fbb5efa9cceb61547..5d905073b43ff0c24f8d83d99f6c13833bb57790 100644 (file)
@@ -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().