config: fix resource leaks on error in config_parse_interface()