Change __talloc() to only call talloc_memlimit_check()/talloc_memlimit_grow() on...
authorJeremy Allison <jra@samba.org>
Tue, 27 Aug 2013 19:49:00 +0000 (12:49 -0700)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Mar 2015 09:55:36 +0000 (10:55 +0100)
commit79e04be1716149e8c1a907eac0ddec2d16dbaca5
tree765b85a22cb179e77cc31c533a5a927578b74052
parent33d24f26485721190f20d7e1ec759107dc9c9340
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