The code currently `malloc`s a larger memory buffer, and if successful: `memcpy`s the old memory buffer to the new, `free`s the old, and reassigns the pointer. This logic can all be reduced to a `realloc`.
-- v2: windowscodecs: Simplify png_decoder_get_metadata_blocks using realloc.