diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-05-17 08:19:04 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-05-17 08:22:23 +0200 |
commit | c281f2fc1a359d0d3b91b94438f11bb7c88170b5 (patch) | |
tree | 306460bd2563f904ab4bad8d5cec2abfe38d5c37 /lib/talloc | |
parent | 7102105c8954627dc30a851327cf2642ac0783d5 (diff) | |
download | samba-c281f2fc1a359d0d3b91b94438f11bb7c88170b5.tar.gz samba-c281f2fc1a359d0d3b91b94438f11bb7c88170b5.tar.bz2 samba-c281f2fc1a359d0d3b91b94438f11bb7c88170b5.zip |
talloc: setup the new 'tc' before TC_UNDEFINE_GROW_CHUNK() _talloc_realloc()
metze
Diffstat (limited to 'lib/talloc')
-rw-r--r-- | lib/talloc/talloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index f3ed9c8567..95534052bc 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -1512,6 +1512,7 @@ _PUBLIC_ void *_talloc_realloc(const void *context, void *ptr, size_t size, cons memmove(pool_tc->pool, tc, old_used); new_ptr = pool_tc->pool; + tc = (struct talloc_chunk *)new_ptr; TC_UNDEFINE_GROW_CHUNK(tc, size); /* |