close fd on fsv_record

This commit is contained in:
Anthony Minessale committed 2012-07-12 14:03:19 -05:00
1 parent de4bf23d59
commit f5fe8bc5f6
1 file changed
+5
+5
View File
@@ -273,6 +273,11 @@ SWITCH_STANDARD_APP(record_fsv_function)
}
}
if (fd > -1) {
close(fd);
}
switch_core_session_set_read_codec(session, NULL);
switch_core_codec_destroy(&codec);