mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
astobj2: Add tag variants for ao2_bump, ao2_cleanup, and ao2_replace
Tags are useful in hunting down ref imbalances; this patch adds tag variants for these commonly used macros/functions. Review: https://reviewboard.asterisk.org/r/3750/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -524,10 +524,10 @@ int __ao2_ref(void *user_data, int delta)
|
||||
return internal_ao2_ref(user_data, delta, __FILE__, __LINE__, __FUNCTION__);
|
||||
}
|
||||
|
||||
void __ao2_cleanup_debug(void *obj, const char *file, int line, const char *function)
|
||||
void __ao2_cleanup_debug(void *obj, const char *tag, const char *file, int line, const char *function)
|
||||
{
|
||||
if (obj) {
|
||||
__ao2_ref_debug(obj, -1, "ao2_cleanup", file, line, function);
|
||||
__ao2_ref_debug(obj, -1, tag, file, line, function);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user