aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-11 22:50:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-11 22:51:15 +0200
commit3521c70dabb2be64e777eb06ef1f81e6e8cf51e4 (patch)
tree5734b06197a34ad7023ae654bb19f095a3eb27a4
parentc712d240b1684dd5eb32636a28699742034618a0 (diff)
downloadffmpeg-3521c70dabb2be64e777eb06ef1f81e6e8cf51e4.tar.gz
avcodec/dirac_parser: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dirac_parser.c2
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 = {