From: Andrey Volk Date: Wed, 29 Dec 2021 19:05:20 +0000 (+0300) Subject: [mod_opusfile] Fix missing rdlock unlock in switch_opusfile_open() X-Git-Tag: v1.10.10^2~91 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e5dc5a087634145e5fc68b4e6a693d7723fe643;p=thirdparty%2Ffreeswitch.git [mod_opusfile] Fix missing rdlock unlock in switch_opusfile_open() --- diff --git a/src/mod/formats/mod_opusfile/mod_opusfile.c b/src/mod/formats/mod_opusfile/mod_opusfile.c index afd5f51267..1560142263 100644 --- a/src/mod/formats/mod_opusfile/mod_opusfile.c +++ b/src/mod/formats/mod_opusfile/mod_opusfile.c @@ -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; }