]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11450 [mod_conference] Fix for memory leak when conference json list api command...
authorkgribunin <gribunin@gmail.com>
Wed, 31 Oct 2018 16:17:51 +0000 (19:17 +0300)
committerkgribunin <gribunin@gmail.com>
Wed, 31 Oct 2018 16:17:51 +0000 (19:17 +0300)
src/mod/applications/mod_conference/conference_api.c

index 6f6b1a41f9c128d98c798d3b6be7e6c44ab767e0..ec9fee5724583c222d79c9047a0c5f91bd175935 100644 (file)
@@ -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;
 }