diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-28 05:42:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:24 -0500 |
commit | a675b09e8d45b9298df8f8c82bbaa7b91a793eb5 (patch) | |
tree | 48161ba27365850055e8378339aa612360b2d9a8 /source4/librpc/rpc | |
parent | c0af446d57224fec94f4b0901cee4532dc6835b5 (diff) | |
download | samba-a675b09e8d45b9298df8f8c82bbaa7b91a793eb5.tar.gz samba-a675b09e8d45b9298df8f8c82bbaa7b91a793eb5.tar.bz2 samba-a675b09e8d45b9298df8f8c82bbaa7b91a793eb5.zip |
r2709: finally solved the talloc reference problem.
The problem was that the simple "uint_t ref_count;" in a talloc chunk
did not give enough information. It told us that a pointer was
referenced more than once, but it didn't say who it was referenced
by. This means that when the pointer was freed we had no sane way to
clean up the reference.
I have now replaced ref_count with a "refs" list, which means that
references point to the pointer, and the pointer has a linked list of
references. So now we can cleanup from either direction without losing track of anything.
I've also added a LOCAL-TALLOC smbtorture test that tests talloc
behaviour for some common uses.
(This used to be commit 911a8d590cb184bcb892810729955c2c4cf02550)
Diffstat (limited to 'source4/librpc/rpc')
0 files changed, 0 insertions, 0 deletions