Commit 9946da49 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/flac_parser: use av_freep(), do not leave stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fd367668
......@@ -94,9 +94,9 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx)
deflateEnd(&s->zstream);
av_free(s->encbuffer);
av_free(s->previous_frame);
av_free(s->tmpblock);
av_freep(&s->encbuffer);
av_freep(&s->previous_frame);
av_freep(&s->tmpblock);
av_frame_free(&avctx->coded_frame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment