summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-15 15:43:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-15 15:43:14 +0100
commit51b193214dea63762d85a46913d70e602888cad0 (patch)
treee59745253750aeb3e789fbdab5a6bd5fb028d2ec /libavformat
parente631872f13b6be0583603d45a11e53319754bc8d (diff)
avformat/avidec: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avidec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index a8318ffded..f5f727889a 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1847,12 +1847,12 @@ static int avi_read_close(AVFormatContext *s)
av_freep(&ast->sub_ctx->pb);
avformat_close_input(&ast->sub_ctx);
}
- av_free(ast->sub_buffer);
+ av_freep(&ast->sub_buffer);
av_free_packet(&ast->sub_pkt);
}
}
- av_free(avi->dv_demux);
+ av_freep(&avi->dv_demux);
return 0;
}