mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 04:18:21 +00:00
Fix a variety of ref counting issues
This patch resolves a number of ref leaks that occur primarily on Asterisk shutdown. It adds a variety of shutdown routines to core portions of Asterisk such that they can reclaim resources allocate duringd initialization. Review: https://reviewboard.asterisk.org/r/2137 ........ Merged revisions 374177 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 374178 from http://svn.asterisk.org/svn/asterisk/branches/10 ........ Merged revisions 374196 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1757,6 +1757,12 @@ void ao2_bt(void); /* backtrace */
|
||||
* \note they must be able to handle NULL parameters because most of the
|
||||
* allocation/find functions can fail and we don't want to try to tear
|
||||
* down a NULL */
|
||||
void ao2_cleanup(void *obj);
|
||||
void __ao2_cleanup(void *obj);
|
||||
void __ao2_cleanup_debug(void *obj, const char *file, int line, const char *function);
|
||||
#ifdef REF_DEBUG
|
||||
#define ao2_cleanup(obj) __ao2_cleanup_debug((obj), __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
||||
#else
|
||||
#define ao2_cleanup(obj) __ao2_cleanup(obj)
|
||||
#endif
|
||||
void ao2_iterator_cleanup(struct ao2_iterator *iter);
|
||||
#endif /* _ASTERISK_ASTOBJ2_H */
|
||||
|
||||
Reference in New Issue
Block a user