diff options
author | Michael Niedermayer | 2014-10-11 22:50:51 +0200 |
---|---|---|
committer | Michael Niedermayer | 2014-10-11 22:51:15 +0200 |
commit | 3521c70dabb2be64e777eb06ef1f81e6e8cf51e4 (patch) | |
tree | 5734b06197a34ad7023ae654bb19f095a3eb27a4 /libavcodec/dirac_parser.c | |
parent | c712d240b1684dd5eb32636a28699742034618a0 (diff) |
avcodec/dirac_parser: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dirac_parser.c')
-rw-r--r-- | libavcodec/dirac_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dirac_parser.c b/libavcodec/dirac_parser.c index 8b7c55edef..45ded5a779 100644 --- a/libavcodec/dirac_parser.c +++ b/libavcodec/dirac_parser.c @@ -251,7 +251,7 @@ static void dirac_parse_close(AVCodecParserContext *s) DiracParseContext *pc = s->priv_data; if (pc->buffer_size > 0) - av_free(pc->buffer); + av_freep(&pc->buffer); } AVCodecParser ff_dirac_parser = { |