From: kgribunin Date: Wed, 31 Oct 2018 16:17:51 +0000 (+0300) Subject: FS-11450 [mod_conference] Fix for memory leak when conference json list api command... X-Git-Tag: v1.8.3~1^2~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea0e815a70336dc1580d17fe3c0fcdada0d1a23;p=thirdparty%2Ffreeswitch.git FS-11450 [mod_conference] Fix for memory leak when conference json list api command is executed --- 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; }