summaryrefslogtreecommitdiff
path: root/main/stasis_cache_pattern.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2014-07-18 19:55:24 +0000
committerCorey Farrell <git@cfware.com>2014-07-18 19:55:24 +0000
commitfd7814ddb593ec628819e95fab0052d78bc6017b (patch)
tree3e6a5db474a08a5ba8f472de611acbac2cf10f01 /main/stasis_cache_pattern.c
parent88d847374607e426ad6be29544322d9fc0a1bef0 (diff)
stasis: use ao2_t_alloc for certain object allocators
Add tags to stasis objects using the name. This makes it easier to track the source of certain stasis ref leaks. Review: https://reviewboard.asterisk.org/r/3821/ ........ Merged revisions 418996 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/stasis_cache_pattern.c')
-rw-r--r--main/stasis_cache_pattern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/stasis_cache_pattern.c b/main/stasis_cache_pattern.c
index 9644028c3..9e3de367a 100644
--- a/main/stasis_cache_pattern.c
+++ b/main/stasis_cache_pattern.c
@@ -70,7 +70,7 @@ struct stasis_cp_all *stasis_cp_all_create(const char *name,
RAII_VAR(char *, cached_name, NULL, ast_free);
RAII_VAR(struct stasis_cp_all *, all, NULL, ao2_cleanup);
- all = ao2_alloc(sizeof(*all), all_dtor);
+ all = ao2_t_alloc(sizeof(*all), all_dtor, name);
if (!all) {
return NULL;
}
@@ -138,7 +138,7 @@ struct stasis_cp_single *stasis_cp_single_create(struct stasis_cp_all *all,
{
RAII_VAR(struct stasis_cp_single *, one, NULL, ao2_cleanup);
- one = ao2_alloc(sizeof(*one), one_dtor);
+ one = ao2_t_alloc(sizeof(*one), one_dtor, name);
if (!one) {
return NULL;
}