Change __talloc() to only call talloc_memlimit_check()/talloc_memlimit_grow() on...
commitf905053b212c0dbb6132685749c7bb850a621771
authorJeremy Allison <jra@samba.org>
Tue, 27 Aug 2013 19:49:00 +0000 (27 12:49 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 Mar 2015 21:13:08 +0000 (15 22:13 +0100)
tree13960abfc34adb2efb2733c43a78482509e16a80
parent9a11cc54266ad61bb121a3ad33d491cc81b05600
Change __talloc() to only call talloc_memlimit_check()/talloc_memlimit_grow() on actual malloc allocation.

Don't check the memlimit if the allocation was successful from a pool. We already
checked the memory limit when we created the pool.

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