Change _talloc_total_mem_internal() to ignore memory allocated from a pool when calcu...
authorJeremy Allison <jra@samba.org>
Tue, 27 Aug 2013 19:46:09 +0000 (12:46 -0700)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Mar 2015 09:55:36 +0000 (10:55 +0100)
commit33d24f26485721190f20d7e1ec759107dc9c9340
tree399d0c60b84632dd51f946b25592795a4b467222
parent0a0314d160ae8e316e8a64975b6b9f12ec07a60f
Change _talloc_total_mem_internal() to ignore memory allocated from a pool when calculating limit size.

We must only count normal tallocs, or a talloc pool itself.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
(cherry picked from commit 4159a78ed7eda340758e22286f16186987a20f2f)
lib/talloc/talloc.c