aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-09 22:07:26 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-09 22:07:26 +0000
commitaddb93b041c57688885490ccea5e6216791960f5 (patch)
tree5638c85b32b209080ff2f41229c1e6f768b94f49
parent6b0ad4ad0a55784cf6595423bb12bf0c0dfff4df (diff)
add missing unlock (issue #6112)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7915 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 4d0ffc34e..76bf9a12a 100644
--- 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;
}