isl_flow_alloc: fix error handling