aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-30 23:58:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-10-30 23:58:52 +0100
commitfc8d59fa6f4ca410fcbf88b54aee3a4fbf73c47f (patch)
treed2424ad56d81b9744ef17b08143156c0401d95e7
parent2a26b22a173969f95abb0b65016438347b6c9bcd (diff)
downloadffmpeg-fc8d59fa6f4ca410fcbf88b54aee3a4fbf73c47f.tar.gz
avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 7b9fd1a766..5a62f5c95c 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s)
H264Context *h = s->priv_data;
ParseContext *pc = &h->parse_context;
- av_free(pc->buffer);
+ av_freep(&pc->buffer);
ff_h264_free_context(h);
}