Merge pull request #1619 in FS/freeswitch from ~GRIBUNIN/freeswitch:bugfix/FS-11450-mod_conference-api-command-json_list to master

* commit '6ea0e815a70336dc1580d17fe3c0fcdada0d1a23':
  FS-11450 [mod_conference] Fix for memory leak when conference json list api command is executed
This commit is contained in:
Mike Jerris 2018-11-20 20:00:46 +00:00
commit 47e5f79fb1
1 changed files with 2 additions and 0 deletions

View 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;
}