diff options
author | Corey Farrell <git@cfware.com> | 2014-07-18 19:55:24 +0000 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2014-07-18 19:55:24 +0000 |
commit | fd7814ddb593ec628819e95fab0052d78bc6017b (patch) | |
tree | 3e6a5db474a08a5ba8f472de611acbac2cf10f01 /main/stasis_message_router.c | |
parent | 88d847374607e426ad6be29544322d9fc0a1bef0 (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_message_router.c')
-rw-r--r-- | main/stasis_message_router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/stasis_message_router.c b/main/stasis_message_router.c index 41495db11..900265e6c 100644 --- a/main/stasis_message_router.c +++ b/main/stasis_message_router.c @@ -212,7 +212,7 @@ struct stasis_message_router *stasis_message_router_create( int res; RAII_VAR(struct stasis_message_router *, router, NULL, ao2_cleanup); - router = ao2_alloc(sizeof(*router), router_dtor); + router = ao2_t_alloc(sizeof(*router), router_dtor, topic->name); if (!router) { return NULL; } |