From: Jeremy Allison Date: Tue, 27 Aug 2013 19:51:20 +0000 (-0700) Subject: Update memory limits when we call free() on a pool. X-Git-Tag: samba-4.0.26~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0aa59adbf33b77be35f85afad2fca043c2eab8be;p=thirdparty%2Fsamba.git Update memory limits when we call free() on a pool. Signed-off-by: Jeremy Allison Reviewed-by: Simo Sorce (cherry picked from commit 4dfde7d33e7ac6c94833ecc758baff487ab67e4e) --- diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index cee7d23ef7c..c45ac9327bc 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;