diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 00:15:22 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 00:15:22 +0300 |
commit | be0cb7e053850b68aa21f4ebfe239f149e60cb5b (patch) | |
tree | 424272fb3c34665013796c854d3db712f6985c5a | |
parent | b2bbe8298ba5416f26ffadb43f9e75997ec02f7f (diff) |
avformat/dss: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/dss.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |