Change __talloc() to only call talloc_memlimit_check()/talloc_memlimit_grow() on...
commit681728af4fb9ac47eb9fee34b409b1cc8186153f
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:14:07 +0000 (15 22:14 +0100)
tree765b85a22cb179e77cc31c533a5a927578b74052
parenta49237cbb92e52929232046fb05d62e7f66e2ac8
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