avformat/dss: Use av_freep() to avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Feb 2015 21:15:22 +0000 (22:15 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Feb 2015 21:15:22 +0000 (22:15 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/dss.c

index a353ee0..5ee69a1 100644 (file)
@@ -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;
 }