Inside _talloc_realloc(), keep track of size changes over malloc/realloc/free.
authorJeremy Allison <jra@samba.org>
Tue, 27 Aug 2013 20:07:04 +0000 (13:07 -0700)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Mar 2015 09:55:37 +0000 (10:55 +0100)
commitedc3211b85b45a7fc4ab62e4e3b9927d39b89026
tree5e88ae0736a5e7ce090fc4e3b12d69f3accec821
parent872ab4445e4c805a3d7b0ec585a0d40dadbbdd99
Inside _talloc_realloc(), keep track of size changes over malloc/realloc/free.

Replace the last use of talloc_memlimit_update() with talloc_memlimit_grow()/
talloc_memlimit_shrink().

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