[mod_opusfile] Fix missing rdlock unlock in switch_opusfile_open()

This commit is contained in:
Andrey Volk 2021-12-29 22:05:20 +03:00
parent e479f1b648
commit 8e5dc5a087
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ static switch_status_t switch_opusfile_open(switch_file_handle_t *handle, const
context->of = op_open_file(path, &ret);
if (!context->of) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "[OGG/OPUS File] Error opening %s\n", path);
switch_thread_rwlock_unlock(context->rwlock);
return SWITCH_STATUS_GENERR;
}