asfdec: prevent the memory leak while reading metadata