Merge "PaletteSortModifiedZeng: fix leak on error" into main

This commit is contained in:
James Zern 2023-02-28 00:23:05 +00:00 committed by Gerrit Code Review
commit d64e6d7d9d

View File

@ -259,6 +259,7 @@ static int PaletteSortModifiedZeng(
return 0;
}
if (!CoOccurrenceBuild(pic, palette_sorted, num_colors, cooccurrence)) {
WebPSafeFree(cooccurrence);
return 0;
}