mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/flac_parser: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fd367668e1
commit
9946da4976
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue