isl_basic_set_swap_vars: finalize result
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 22 Sep 2010 09:05:26 +0000 (11:05 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 22 Sep 2010 09:09:31 +0000 (11:09 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c

index 0f03cbf..94d9aed 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -1236,7 +1236,8 @@ struct isl_basic_set *isl_basic_set_swap_vars(
        isl_blk_free(bset->ctx, blk);
 
        ISL_F_CLR(bset, ISL_BASIC_SET_NORMALIZED);
-       return isl_basic_set_gauss(bset, NULL);
+       bset = isl_basic_set_gauss(bset, NULL);
+       return isl_basic_set_finalize(bset);
 error:
        isl_basic_set_free(bset);
        return NULL;