mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
https://gitlab.com/samba-team/samba is the Official GitLab mirror of https://git.samba.org/samba.git -- Merge requests should be made on GitLab (not on GitHub)
4f55a7af08
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
|
||
---|---|---|
packaging/debian | ||
source4 | ||
COPYING | ||
prog_guide.txt | ||
swat2.txt |