Made parse_expr cleanup memory on failure in a few known places.