taskprocessor.c: Fix CLI "core show taskprocessors" unref.

Change-Id: I1d9f4e532caa6dfabe034745dd16d06134efdce5
This commit is contained in:
Richard Mudgett
2016-01-08 21:05:16 -06:00
parent b025e1982f
commit 7d86979ea0
+1 -1
View File
@@ -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);