From 4dfde7d33e7ac6c94833ecc758baff487ab67e4e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 27 Aug 2013 12:51:20 -0700 Subject: Update memory limits when we call free() on a pool. Signed-off-by: Jeremy Allison Reviewed-by: Simo Sorce --- lib/talloc/talloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index cee7d23ef7..c45ac9327b 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -807,6 +807,8 @@ static inline void _talloc_free_poolmem(struct talloc_chunk *tc, */ pool->hdr.c.name = location; + talloc_memlimit_update_on_free(&pool->hdr.c); + TC_INVALIDATE_FULL_CHUNK(&pool->hdr.c); free(pool); return; -- cgit