diff options
author | Måns Rullgård <mans@mansr.com> | 2007-07-05 06:47:00 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-07-05 06:47:00 +0000 |
commit | 85d366fd024e2290651f4ac446964b12500b2eba (patch) | |
tree | af221b471f4712f3e866f4b22beec9cde7b8986d /libavcodec | |
parent | ed77a6c9091cefa2d235ee9f50085bb8489179c2 (diff) | |
download | ffmpeg-85d366fd024e2290651f4ac446964b12500b2eba.tar.gz |
use av_freep() in free_vlc() and failed init_vlc()
Originally committed as revision 9474 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/bitstream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index cb80376093..271a393b22 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -261,7 +261,7 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, codes, codes_wrap, codes_size, symbols, symbols_wrap, symbols_size, 0, 0, flags) < 0) { - av_free(vlc->table); + av_freep(&vlc->table); return -1; } return 0; @@ -270,6 +270,6 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, void free_vlc(VLC *vlc) { - av_free(vlc->table); + av_freep(&vlc->table); } |