diff options
Diffstat (limited to 'libavcodec/sonic.c')
-rw-r--r-- | libavcodec/sonic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c index 3824c1f..bd2d42e 100644 --- a/libavcodec/sonic.c +++ b/libavcodec/sonic.c @@ -193,7 +193,7 @@ static int intlist_write(PutBitContext *pb, int *buf, int entries, int base_2_pa bits = av_calloc(entries*max, sizeof(*bits)); if (!bits) { -// av_free(copy); + av_free(copy); return AVERROR(ENOMEM); } @@ -249,8 +249,8 @@ static int intlist_write(PutBitContext *pb, int *buf, int entries, int base_2_pa if (buf[i]) put_bits(pb, 1, buf[i] < 0); -// av_free(bits); -// av_free(copy); + av_free(bits); + av_free(copy); return 0; } @@ -341,7 +341,7 @@ static int intlist_read(GetBitContext *gb, int *buf, int entries, int base_2_par pos++; } -// av_free(bits); + av_free(bits); // read signs for (i = 0; i < entries; i++) |