diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index ee330608f2..6527dac3ed 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -482,7 +482,7 @@ static av_cold int flashsv_decode_end(AVCodecContext *avctx) av_frame_unref(&s->frame); /* free the tmpblock */ - av_free(s->tmpblock); + av_freep(&s->tmpblock); return 0; }