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)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 Mar 2015 21:14:07 +0000 (22:14 +0100)
commitcf58b4307ccdb9c496dccce9c4198c1374cf62b8
tree5e88ae0736a5e7ce090fc4e3b12d69f3accec821
parente9f3ce8e93e8f75bf701789665d044f267ddf1a1
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