mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Merge "enc/vp8l: fix double free on error"
This commit is contained in:
commit
22671ed6a3
@ -338,6 +338,8 @@ static int GetHuffBitLengthsAndCodes(
|
|||||||
for (idx = 0; idx <= 5 * i + k; ++idx) {
|
for (idx = 0; idx <= 5 * i + k; ++idx) {
|
||||||
free(bit_lengths[idx]);
|
free(bit_lengths[idx]);
|
||||||
free(bit_codes[idx]);
|
free(bit_codes[idx]);
|
||||||
|
bit_lengths[idx] = NULL;
|
||||||
|
bit_codes[idx] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user