mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-04 16:06:49 +02:00
Merge "PaletteSortModifiedZeng: fix leak on error" into main
This commit is contained in:
commit
d64e6d7d9d
@ -259,6 +259,7 @@ static int PaletteSortModifiedZeng(
|
||||
return 0;
|
||||
}
|
||||
if (!CoOccurrenceBuild(pic, palette_sorted, num_colors, cooccurrence)) {
|
||||
WebPSafeFree(cooccurrence);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user