diff --git a/file.c b/file.c index 4d0ffc34e4..76bf9a12ab 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; }