Fix memory leak of pretty_printer prefixes