]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1214209 Resource leak, don't leak event populated by switch_channel_get_variables
authorMichael Jerris <mike@jerris.com>
Thu, 15 May 2014 13:22:51 +0000 (13:22 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 15 May 2014 13:22:51 +0000 (13:22 +0000)
src/mod/applications/mod_fsk/mod_fsk.c

index 9695a9af14708e6bc16ccf3b16dd800fbc3793b6..566de16138539017614eaa2d0112a1bc6673975b 100644 (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);