From 884a2bcb81fcb00622a9d53462f614dcbf49118d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 17 Mar 2023 14:38:16 -0400 Subject: [PATCH] MT#56471 fix mem leak Thou shalt free thy alloc when thou no longer needeth it. Change-Id: I909488ee197ec72c56c16647d2dda9786dd28007 --- daemon/audio_player.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/audio_player.c b/daemon/audio_player.c index ab5c829ba..39227ad65 100644 --- a/daemon/audio_player.c +++ b/daemon/audio_player.c @@ -178,6 +178,7 @@ void audio_player_add_frame(struct audio_player *ap, uint32_t ssrc, AVFrame *fra bool ret = mix_buffer_write(&ap->mb, ssrc, frame->extended_data[0], frame->nb_samples); if (!ret) ilogs(transcoding, LOG_WARN | LOG_FLAG_LIMIT, "Failed to add samples to mix buffer"); + av_frame_free(&frame); }