Merge "enc/vp8l: fix double free on error"

This commit is contained in:
pascal massimino
2012-05-09 13:36:38 -07:00
committed by Gerrit Code Review

View File

@ -338,6 +338,8 @@ static int GetHuffBitLengthsAndCodes(
for (idx = 0; idx <= 5 * i + k; ++idx) {
free(bit_lengths[idx]);
free(bit_codes[idx]);
bit_lengths[idx] = NULL;
bit_codes[idx] = NULL;
}
}
return 0;