talloc: fixed a use after free error
authorAndrew Tridgell <tridge@samba.org>
Wed, 5 Jan 2011 05:33:13 +0000 (16:33 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 5 Jan 2011 06:22:27 +0000 (07:22 +0100)
commit6f51a1f45bf4de062cce7a562477e8140630a53d
tree5ae6fac7e4f91e129740661470110e2930b49c9a
parent66db49e35f87f0e0a9d82cfa661d2cc604758406
talloc: fixed a use after free error

this is the minimal fix for the problem Rusty found. I previously
thought that the best fix would be to change tc->parent to be valid
for all pointers, but that is expensive for realloc with large numbers
of child pointers, which is much more commmon than I expected it to
be.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jan  5 07:22:27 CET 2011 on sn-devel-104
lib/talloc/talloc.c