png_create_info_struct in png.c in libpng 1.6.36 has a memory leak, as demonstrated by pngcp. Upstream: https://github.com/glennrp/libpng/issues/269
Maintainers please advise if this is fixed in the current stabilization: media-libs/libpng-1.6.37
This is an error in media-gfx/pngtools, not in media-libs/libpng.
Disputed upstream and minor impact if any as noted by upstream devs.