diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-01-07 21:07:49 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-01-08 20:12:35 -0600 |
commit | 2c4b7502dedcc4358dd4f41cb23001f0fa4075d6 (patch) | |
tree | ef37fcf3297e63b4c8749d82e992d402828e9c46 | |
parent | 0e0c24ad78020b3cf47f69632e2e88c20c0a7387 (diff) |
taskprocessor.c: Fix CLI "core show taskprocessors" unref.
Change-Id: I1d9f4e532caa6dfabe034745dd16d06134efdce5
-rw-r--r-- | main/taskprocessor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/taskprocessor.c b/main/taskprocessor.c index 0712a92ff..5061f4795 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -445,7 +445,7 @@ static char *cli_tps_report(struct ast_cli_entry *e, int cmd, struct ast_cli_arg maxqsize = p->stats->max_qsize; processed = p->stats->_tasks_processed_count; ast_cli(a->fd, "\n%24s %17lu %12lu %12lu", name, processed, qsize, maxqsize); - ao2_ref(p, -1); + ast_taskprocessor_unreference(p); } ao2_iterator_destroy(&i); tcount = ao2_container_count(tps_singletons); |