From be0cb7e053850b68aa21f4ebfe239f149e60cb5b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 19 Feb 2015 22:15:22 +0100 Subject: [PATCH] avformat/dss: Use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/dss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dss.c b/libavformat/dss.c index a353ee02f9..5ee69a10d6 100644 --- a/libavformat/dss.c +++ b/libavformat/dss.c @@ -326,7 +326,7 @@ static int dss_read_close(AVFormatContext *s) { DSSDemuxContext *ctx = s->priv_data; - av_free(ctx->dss_sp_buf); + av_freep(&ctx->dss_sp_buf); return 0; }