From a1cb8779e2c7a817b44332fd28a0da4ed6011b97 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 30 Oct 2014 23:35:32 +0100 Subject: [PATCH] avcodec/crystalhd: use av_freep() to avoid stale pointers this leaves some av_free() where the pointer is overwritten shortly later Signed-off-by: Michael Niedermayer --- libavcodec/crystalhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);