summaryrefslogtreecommitdiff
path: root/cel/cel_custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'cel/cel_custom.c')
-rw-r--r--cel/cel_custom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cel/cel_custom.c b/cel/cel_custom.c
index f6377fcd7..f75efdd4b 100644
--- a/cel/cel_custom.c
+++ b/cel/cel_custom.c
@@ -71,8 +71,10 @@ static AST_RWLIST_HEAD_STATIC(sinks, cel_config);
static void free_config(void)
{
struct cel_config *sink;
+
while ((sink = AST_RWLIST_REMOVE_HEAD(&sinks, list))) {
ast_mutex_destroy(&sink->lock);
+ ast_string_field_free_memory(sink);
ast_free(sink);
}
}