diff --git a/chan_capi.c b/chan_capi.c index 0c0059b..75c3d6f 100644 --- a/chan_capi.c +++ b/chan_capi.c @@ -5326,6 +5326,7 @@ int unload_module() cc_log(LOG_WARNING, "On unload, interface still has owner.\n"); if (i->smoother) ast_smoother_free(i->smoother); + cc_mutex_destroy(&i->lock); itmp = i; i = i->next; free(itmp);