From 6ea0e815a70336dc1580d17fe3c0fcdada0d1a23 Mon Sep 17 00:00:00 2001 From: kgribunin Date: Wed, 31 Oct 2018 19:17:51 +0300 Subject: [PATCH] FS-11450 [mod_conference] Fix for memory leak when conference json list api command is executed --- src/mod/applications/mod_conference/conference_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/applications/mod_conference/conference_api.c b/src/mod/applications/mod_conference/conference_api.c index 6f6b1a41f9..ec9fee5724 100644 --- a/src/mod/applications/mod_conference/conference_api.c +++ b/src/mod/applications/mod_conference/conference_api.c @@ -4084,6 +4084,8 @@ switch_status_t conference_api_sub_json_list(conference_obj_t *conference, switc switch_assert(ebuf); stream->write_function(stream, "%s", ebuf); free(ebuf); + + cJSON_Delete(conferences); return SWITCH_STATUS_SUCCESS; }