summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-08-25 06:40:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:21 -0500
commit4f55a7af084137822c813cbe3822fca54e64df76 (patch)
tree2355f2d9b4bb93eeda9309574aceb4331dd656fe /source4/rpc_server
parentc4a2128db5fd36f4e616df74de8bddd9285d2728 (diff)
downloadsamba-4f55a7af084137822c813cbe3822fca54e64df76.tar.gz
samba-4f55a7af084137822c813cbe3822fca54e64df76.tar.bz2
samba-4f55a7af084137822c813cbe3822fca54e64df76.zip
r2049: talloc now has destructors and reference counts
this means you can do: talloc_set_destructor(ptr, my_destructor); and your destructor will be called with the pointer as an argument when the pointer is about to be freed. The destructor can refuse the free by returning -1. You can also increase the reference count on a pointer like this: talloc_increase_ref_count(ptr); and a talloc_free() will just reduce the reference count, only actually freeing the memory when the count reaches zero. (This used to be commit b5608d52d33a1d8be5a8a6751bc6cec162c7ed92)
Diffstat (limited to 'source4/rpc_server')
0 files changed, 0 insertions, 0 deletions