taskprocessor.c: Fix CLI "core show taskprocessors" unref.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 8 Jan 2016 03:07:49 +0000 (21:07 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 9 Jan 2016 03:05:16 +0000 (21:05 -0600)
Change-Id: I1d9f4e532caa6dfabe034745dd16d06134efdce5

main/taskprocessor.c

index bea65a1..9a880a6 100644 (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);