diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-02 12:55:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:10 -0500 |
commit | f4b349127bdfe233476fe2efba961912f39a5cbd (patch) | |
tree | 8b612fc9b60c9e253964c0d539e071dd7e0afe28 /source4/lib/talloc/talloc_guide.txt | |
parent | 09a76e204cf339862f8b0b45979d65cc34aa3c36 (diff) | |
download | samba-f4b349127bdfe233476fe2efba961912f39a5cbd.tar.gz samba-f4b349127bdfe233476fe2efba961912f39a5cbd.tar.bz2 samba-f4b349127bdfe233476fe2efba961912f39a5cbd.zip |
r4479: added the function talloc_autofree_context() which returns a talloc context that
will automatically be freed on program exit. This is useful for reducing
clutter in leak reports
(This used to be commit cf73dda652e0a121901f22771104be6751c0fcb9)
Diffstat (limited to 'source4/lib/talloc/talloc_guide.txt')
-rw-r--r-- | source4/lib/talloc/talloc_guide.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/talloc/talloc_guide.txt b/source4/lib/talloc/talloc_guide.txt index b3b148d476..ce3c8bde68 100644 --- a/source4/lib/talloc/talloc_guide.txt +++ b/source4/lib/talloc/talloc_guide.txt @@ -490,3 +490,9 @@ implementation encapsulates the functionality of malloc(), free() and realloc() in one call, which is why it is useful to be able to pass around a single function pointer. +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +void *talloc_autofree_context(void); + +This is a handy utility function that returns a talloc context +which will be automatically freed on program exit. This can be used +to reduce the noise in memory leak reports. |