CID:1214209 Resource leak, don't leak event populated by switch_channel_get_variables

This commit is contained in:
Michael Jerris 2014-05-15 13:22:51 +00:00
parent 452d7a3793
commit 07b6bba68b
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ SWITCH_STANDARD_APP(fsk_send_function) {
switch_core_session_write_frame(sdata.session, &sdata.write_frame, SWITCH_IO_FLAG_NONE, 0);
}
switch_event_destroy(&event);
switch_buffer_destroy(&buffer);
switch_core_codec_destroy(&sdata.codec);
switch_core_session_set_read_codec(session, NULL);