mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-28 05:29:38 +00:00
FS-10100: [mod_av] fix crash on allocation error and other error cases opening a file
This commit is contained in:
1 parent
35b3e9a6a0
commit
0a3dd43e2f
1 file changed
+5
-1
@@ -1857,7 +1857,11 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
|
||||
|
||||
end:
|
||||
|
||||
if (context && context->fc) {
|
||||
if (!context) {
|
||||
return status;
|
||||
}
|
||||
|
||||
if (context->fc) {
|
||||
mod_avformat_destroy_output_context(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user