Fix leaks and errors in rcl_parser.