mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
taskprocessor.c: Fix CLI "core show taskprocessors" unref.
Change-Id: I1d9f4e532caa6dfabe034745dd16d06134efdce5
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user