]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
add missing unlock (issue #6112)
authorRussell Bryant <russell@russellbryant.com>
Mon, 9 Jan 2006 22:07:26 +0000 (22:07 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 9 Jan 2006 22:07:26 +0000 (22:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7915 65c4cc65-6c06-0410-ace0-fbb531ad65f3

file.c

diff --git a/file.c b/file.c
index 4d0ffc34e471382bfe891c1d1f78aa8a3ea8c7d7..76bf9a12abbce1692ba4c0d4219d6ee15a4e438d 100644 (file)
--- a/file.c
+++ b/file.c
@@ -176,6 +176,7 @@ int ast_format_unregister(const char *name)
                tmpl = tmp;
                tmp = tmp->next;
        }
+       ast_mutex_unlock(&formatlock);
        ast_log(LOG_WARNING, "Tried to unregister format %s, already unregistered\n", name);
        return -1;
 }