mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
fix a memleak in EncodeImageInternal()
Change-Id: I55cd013211f192188b54c694ef0837af0c01b53c
This commit is contained in:
parent
0993a611cd
commit
4a6362357a
@ -855,6 +855,7 @@ static int EncodeImageInternal(VP8LBitWriter* const bw,
|
|||||||
if (!ok) {
|
if (!ok) {
|
||||||
DeleteHistograms(histogram_image, histogram_image_size);
|
DeleteHistograms(histogram_image, histogram_image_size);
|
||||||
}
|
}
|
||||||
|
free(backward_refs);
|
||||||
for (i = 0; i < 5 * histogram_image_size; ++i) {
|
for (i = 0; i < 5 * histogram_image_size; ++i) {
|
||||||
free(bit_lengths[i]);
|
free(bit_lengths[i]);
|
||||||
free(bit_codes[i]);
|
free(bit_codes[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user