Fix memory leak in [format] compiler.