aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-05 21:34:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-09 01:13:58 +0200
commit6cf254ea68148497b28981fa915848d5f4bfd6b0 (patch)
tree0fb38c1eb5522b67c625295043ab3998829683d4
parentf24246a8891ee62bd0494635755c8d29492d7fb6 (diff)
downloadffmpeg-6cf254ea68148497b28981fa915848d5f4bfd6b0.tar.gz
avcodec/wma: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d167faafe9dfa0b82bebb267c3c4e5fa5286bd67) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/wma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index a19f776039..fcb516ff09 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -424,9 +424,9 @@ int ff_wma_end(AVCodecContext *avctx)
}
for (i = 0; i < 2; i++) {
ff_free_vlc(&s->coef_vlc[i]);
- av_free(s->run_table[i]);
- av_free(s->level_table[i]);
- av_free(s->int_table[i]);
+ av_freep(&s->run_table[i]);
+ av_freep(&s->level_table[i]);
+ av_freep(&s->int_table[i]);
}
return 0;