close fd on fsv_record

This commit is contained in:
Anthony Minessale 2012-07-12 14:01:19 -05:00
parent de4bf23d59
commit f5fe8bc5f6
1 changed files with 5 additions and 0 deletions

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);