Commit be0cb7e0 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/dss: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b2bbe829
...@@ -326,7 +326,7 @@ static int dss_read_close(AVFormatContext *s) ...@@ -326,7 +326,7 @@ static int dss_read_close(AVFormatContext *s)
{ {
DSSDemuxContext *ctx = s->priv_data; DSSDemuxContext *ctx = s->priv_data;
av_free(ctx->dss_sp_buf); av_freep(&ctx->dss_sp_buf);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment