talloc: make really sure only optimize realloc if there's only one pool chunk
authorStefan Metzmacher <metze@samba.org>
Mon, 16 May 2011 18:15:59 +0000 (20:15 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 May 2011 06:22:21 +0000 (08:22 +0200)
commit7102105c8954627dc30a851327cf2642ac0783d5
tree3f4d33a02f588bc7873f91ec0f5412aa6722ad51
parent14b662ee4f278764b9dfd620851e908d29f29fc4
talloc: make really sure only optimize realloc if there's only one pool chunk

*talloc_pool_objectcount(pool_tc) == 2 doesn't mean the one of the objects
is the pool itself! So we better check for == 1 and calculate the chunk count.

metze
lib/talloc/talloc.c