summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-27 12:51:20 -0700
committerJeremy Allison <jra@samba.org>2013-08-27 15:44:19 -0700
commit4dfde7d33e7ac6c94833ecc758baff487ab67e4e (patch)
tree682101273a00e964be9a01bbd4e7b602581675ff /lib
parenta4ebbe73b4b8dcab4d344e693ad9796ec8997f87 (diff)
downloadsamba-4dfde7d33e7ac6c94833ecc758baff487ab67e4e.tar.gz
samba-4dfde7d33e7ac6c94833ecc758baff487ab67e4e.tar.bz2
samba-4dfde7d33e7ac6c94833ecc758baff487ab67e4e.zip
Update memory limits when we call free() on a pool.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/talloc.c2
1 files changed, 2 insertions, 0 deletions
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;