[Asterisk-code-review] app queue.c: Fix json ref leak (asterisk[13])
Richard Mudgett
asteriskteam at digium.com
Mon Oct 1 11:46:10 CDT 2018
Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/10337
Change subject: app_queue.c: Fix json ref leak
......................................................................
app_queue.c: Fix json ref leak
Declining the queue_member_status_type stasis message in stasis.conf
causes these messages to leak json objects.
* Add missing ast_json_unref() if the type is NULL in
queue_publish_member_blob().
ASTERISK-28084
Change-Id: I691ecf49bd1f7d9c29182e1eee8c4bb7103be9fc
---
M apps/app_queue.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/37/10337/1
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 50f9029..eb85c51 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2154,6 +2154,7 @@
RAII_VAR(struct stasis_message *, msg, NULL, ao2_cleanup);
if (!blob || !type) {
+ ast_json_unref(blob);
return;
}
--
To view, visit https://gerrit.asterisk.org/10337
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I691ecf49bd1f7d9c29182e1eee8c4bb7103be9fc
Gerrit-Change-Number: 10337
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181001/306fd560/attachment.html>
More information about the asterisk-code-review
mailing list