summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-10 14:42:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-10 14:42:17 +0100
commitec4d761c745df45ca0d5677e71e62064dbf9cb49 (patch)
tree928d45866136b3902f5715c20b1e413801bcc50d
parent8477e63d3c23feacb9626d58c0e966eded4016f4 (diff)
downloadffmpeg-streaming-ec4d761c745df45ca0d5677e71e62064dbf9cb49.zip
ffmpeg-streaming-ec4d761c745df45ca0d5677e71e62064dbf9cb49.tar.gz
avcodec/sonic: fix memleaks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/sonic.c8
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++)
OpenPOWER on IntegriCloud