[Asterisk-code-review] taskprocessor.c: Fix CLI "core show taskprocessors" unref. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Fri Jan 8 14:06:51 CST 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/1943

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

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

Change-Id: I1d9f4e532caa6dfabe034745dd16d06134efdce5
---
M main/taskprocessor.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/43/1943/1

diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index 0712a92..5061f47 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -445,7 +445,7 @@
 		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);

-- 
To view, visit https://gerrit.asterisk.org/1943
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d9f4e532caa6dfabe034745dd16d06134efdce5
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list