From 07b6bba68b2daa6e85fd4c7dfd5bc1bd558c0259 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 15 May 2014 13:22:51 +0000 Subject: [PATCH] CID:1214209 Resource leak, don't leak event populated by switch_channel_get_variables --- src/mod/applications/mod_fsk/mod_fsk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/applications/mod_fsk/mod_fsk.c b/src/mod/applications/mod_fsk/mod_fsk.c index 9695a9af14..566de16138 100644 --- a/src/mod/applications/mod_fsk/mod_fsk.c +++ b/src/mod/applications/mod_fsk/mod_fsk.c @@ -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);