From 308c3f9cf6b493a32f2d71a990639014101dcad0 Mon Sep 17 00:00:00 2001 From: Richard Mudgett <rmudgett@digium.com> Date: Fri, 28 Sep 2018 13:55:43 -0500 Subject: [PATCH] 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 --- apps/app_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/app_queue.c b/apps/app_queue.c index a94509e736..00e4005a90 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2208,6 +2208,7 @@ static void queue_publish_member_blob(struct stasis_message_type *type, struct a RAII_VAR(struct stasis_message *, msg, NULL, ao2_cleanup); if (!blob || !type) { + ast_json_unref(blob); return; } -- GitLab