aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}