compext/Png.c: late image_index allocation
Move allocation of image_index close before first_use. This way we do
not need to free it if previous step fail. And we cannot forget that
free() call.
While at it replace malloc+memset by calloc.
Showing
Please
register
or
sign in
to comment