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/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@418996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Corey Farrell
2014-07-18 19:53:31 +00:00
parent 6da297cfc3
commit f4d21fb97e
4 changed files with 8 additions and 8 deletions

View File

@@ -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;
}