isl_transitive_closure.c: fix double free on error path