avcodec/pngdec: fix mem leak in init()