From f9ae163d237563e8620f96d2fad063d642bd577d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 14 Aug 2025 13:12:22 -0400 Subject: [PATCH] MT#55283 add missing lock destruction Change-Id: I93d8dbb71db0ab667b06df88991733e8af769f64 --- daemon/call.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 4959fdbdb..ad89ba1a5 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -3994,6 +3994,7 @@ static void __call_cleanup(call_t *c) { ps->selected_sfd = NULL; t_queue_clear(&ps->sfds); crypto_cleanup(&ps->crypto); + mutex_destroy(&ps->lock); t_queue_clear_full(&ps->rtp_sinks, free_sink_handler); t_queue_clear_full(&ps->rtcp_sinks, free_sink_handler); @@ -4006,6 +4007,7 @@ static void __call_cleanup(call_t *c) { media_stop(md); t38_gateway_put(&md->t38_gateway); audio_player_free(md); + mutex_destroy(&md->dtmf_lock); } for (__auto_type l = c->monologues.head; l; l = l->next) { @@ -4025,6 +4027,7 @@ static void __call_cleanup(call_t *c) { } recording_finish(c, false); + rwlock_destroy(&c->master_lock); } // rtpe_callhash_lock must be held