From ce4b01df94904d754b8c884b028b9d50d0db928f Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Thu, 30 Dec 2021 23:11:10 -0500 Subject: [PATCH] Fix the compiled out code too Has the same double-unlock issue as the previous commit. It also looks like rtp_free_msg() is gone and free() should be used instead. --- toxav/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toxav/audio.c b/toxav/audio.c index c83d4354..a0155d53 100644 --- a/toxav/audio.c +++ b/toxav/audio.c @@ -151,7 +151,8 @@ void ac_iterate(ACSession *ac) cs->last_packet_sampling_rate = rc; } else { LOGGER_WARNING(ac->log, "Failed to load packet values!"); - rtp_free_msg(msg); + free(msg); + pthread_mutex_lock(ac->queue_mutex); continue; }