fix a memleak in EncodeImageInternal()

Change-Id: I55cd013211f192188b54c694ef0837af0c01b53c
This commit is contained in:
Urvang Joshi 2012-04-19 15:44:40 +00:00 committed by James Zern
parent 0993a611cd
commit 4a6362357a

View File

@ -855,6 +855,7 @@ static int EncodeImageInternal(VP8LBitWriter* const bw,
if (!ok) {
DeleteHistograms(histogram_image, histogram_image_size);
}
free(backward_refs);
for (i = 0; i < 5 * histogram_image_size; ++i) {
free(bit_lengths[i]);
free(bit_codes[i]);