Browse Source

MT#56471 fix mem leak

Thou shalt free thy alloc when thou no longer needeth it.

Change-Id: I909488ee197ec72c56c16647d2dda9786dd28007
pull/1640/head
Richard Fuchs 3 years ago
parent
commit
884a2bcb81
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      daemon/audio_player.c

+ 1
- 0
daemon/audio_player.c View File

@ -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);
}


Loading…
Cancel
Save