Skip to content

Commit 884a2bc

Browse files
committed
MT#56471 fix mem leak
Thou shalt free thy alloc when thou no longer needeth it. Change-Id: I909488ee197ec72c56c16647d2dda9786dd28007
1 parent 7a7c4e4 commit 884a2bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

daemon/audio_player.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ void audio_player_add_frame(struct audio_player *ap, uint32_t ssrc, AVFrame *fra
178178
bool ret = mix_buffer_write(&ap->mb, ssrc, frame->extended_data[0], frame->nb_samples);
179179
if (!ret)
180180
ilogs(transcoding, LOG_WARN | LOG_FLAG_LIMIT, "Failed to add samples to mix buffer");
181+
av_frame_free(&frame);
181182
}
182183

183184

0 commit comments

Comments
 (0)