git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beec818
)
avcodec/tta: Use av_freep() to avoid leaving stale pointers in memory
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 19 Nov 2014 12:42:46 +0000
(13:42 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 19 Nov 2014 12:44:39 +0000
(13:44 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/tta.c
patch
|
blob
|
history
diff --git
a/libavcodec/tta.c
b/libavcodec/tta.c
index
5fdbac8
..
01584d9
100644
(file)
--- a/
libavcodec/tta.c
+++ b/
libavcodec/tta.c
@@
-394,7
+394,7
@@
static av_cold int tta_decode_close(AVCodecContext *avctx) {
TTAContext *s = avctx->priv_data;
if (s->bps < 3)
- av_free
(
s->decode_buffer);
+ av_free
p(&
s->decode_buffer);
s->decode_buffer = NULL;
av_freep(&s->ch_ctx);