diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-07-11 23:00:21 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-07-11 23:00:21 +0000 |
commit | 0d1288e2d2abb96ba457e2ae14cbf44280a708cf (patch) | |
tree | 5e5c22adcdc88ab589b508f773ed7bd34599e657 /main/astobj2.c | |
parent | 694b68e54466c1c2c6a32acbe5cb74db0dad8e80 (diff) |
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
Diffstat (limited to 'main/astobj2.c')
-rw-r--r-- | main/astobj2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/astobj2.c b/main/astobj2.c index 678517bf6..96b0cdbe5 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -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); } } |