mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r2719: an additional note on talloc_unreference()
(This used to be commit 078d131813
)
This commit is contained in:
parent
8ae2cd82ca
commit
4ff5ffa4a0
@ -134,6 +134,11 @@ as talloc_reference().
|
||||
Note that if the reference has already been removed using
|
||||
talloc_free() then this function will fail and will return NULL.
|
||||
|
||||
Usually you can just use talloc_free() instead of
|
||||
talloc_unreference(), but sometimes it is useful to have the
|
||||
additional control on who becomes the parent of the pointer given by
|
||||
talloc_unreference().
|
||||
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||||
void talloc_set_destructor(const void *ptr, int (*destructor)(void *));
|
||||
|
Loading…
Reference in New Issue
Block a user