MCParser: Modernize memory handling.

NFC.