talloc: Decouple the dual use of chunk->pool
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2013 17:54:43 +0000 (10:54 -0700)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Mar 2015 09:55:37 +0000 (10:55 +0100)
commit14ab26ebe6163ca67bfcecd74de9ab9a4a5f5e5f
tree568abe183acba6a8ac81505c15b0c5c103623d8f
parent743f08d2aa37151cc177855764ee209630b6cd98
talloc: Decouple the dual use of chunk->pool

If we want nested pools, we will have pools that are pool members. So
we will have to have a separate "next object" pointer  for pools. As
we have struct talloc_pool_chunk now, this additional pointer does not
affect normal talloc objects.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 1334c745e1f2157b66e14f9d8b4f6f7750238717)
lib/talloc/talloc.c