[asterisk-commits] taskprocessor.c: Fix CLI "core show taskprocessors" unref. (asterisk[13])
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Tue Jan 12 13:18:28 CST 2016
    
    
  
Joshua Colp has submitted this change and it was merged.
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(-)
Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved
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: merged
Gerrit-Change-Id: I1d9f4e532caa6dfabe034745dd16d06134efdce5
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
    
    
More information about the asterisk-commits
mailing list