]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_opusfile] Fix missing rdlock unlock in switch_opusfile_open()
authorAndrey Volk <andywolk@gmail.com>
Wed, 29 Dec 2021 19:05:20 +0000 (22:05 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 29 Mar 2023 16:05:18 +0000 (19:05 +0300)
src/mod/formats/mod_opusfile/mod_opusfile.c

index afd5f512676c9069d1fea9e634205c6feb087728..1560142263104438f6ac9f450e628df1e2f01b15 100644 (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;
        }