FS-10100: [mod_av] fix crash on allocation error and other error cases opening a file
This commit is contained in:
parent
48d9f3aa85
commit
66fc2502b2
|
@ -1953,7 +1953,11 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
||||||
if (context && context->fc) {
|
if (!context) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context->fc) {
|
||||||
mod_avformat_destroy_output_context(context);
|
mod_avformat_destroy_output_context(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue