From 74999abb76f97c4669465e0f75302458c7abaada Mon Sep 17 00:00:00 2001 From: Dylan Mikus Date: Thu, 17 Dec 2015 18:56:39 +0000 Subject: [PATCH] Free the call->recording struct when the call is destroyed. --- daemon/call.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/call.c b/daemon/call.c index 6e265d047..349f5cfbf 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2223,6 +2223,7 @@ void call_destroy(struct call *c) { free(c->recording->metadata); } meta_finish_file(c); + g_slice_free1(sizeof(*(c->recording)), c->recording); rwlock_unlock_w(&c->master_lock);