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