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)
committerKarolin Seeger <kseeger@samba.org>
Fri, 20 May 2011 19:08:58 +0000 (21:08 +0200)
commit8e95d3201adc546000ca29816c83aba6fab52b1a
tree773f396928f8f986b2832c92dbca648445c458c3
parentdc8b2979168c6688c647cdc39d321eb54bd0aa5b
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
(cherry picked from commit 7102105c8954627dc30a851327cf2642ac0783d5)
lib/talloc/talloc.c