]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_commands] Fix leaking session readlock in uuid_capture_text 2038/head
authorAndrey Volk <andywolk@gmail.com>
Fri, 14 Apr 2023 11:48:41 +0000 (14:48 +0300)
committerAndrey Volk <andywolk@gmail.com>
Fri, 14 Apr 2023 11:48:41 +0000 (14:48 +0300)
src/mod/applications/mod_commands/mod_commands.c

index 4394d9b02f8c0ececd39aafdbacc4e78646a38db..5b9620a7812af6ee8caf4b77e427b53b09b6d5e8 100644 (file)
@@ -3225,6 +3225,7 @@ SWITCH_STANDARD_API(uuid_capture_text)
        } else {
                if ((tsession = switch_core_session_locate(uuid))) {
                        switch_ivr_capture_text(tsession, switch_true(onoff));
+                       switch_core_session_rwunlock(tsession);
                } else {
                        stream->write_function(stream, "-ERR No such channel %s!\n", uuid);
                }