diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index 45b2d46661..001afa4ff4 100644 --- a/libavcodec/crystalhd.c +++ b/libavcodec/crystalhd.c @@ -362,7 +362,7 @@ static av_cold int uninit(AVCodecContext *avctx) av_bitstream_filter_close(priv->bsfc); } - av_free(priv->sps_pps_buf); + av_freep(&priv->sps_pps_buf); av_frame_free (&priv->pic);