From 28f22dc7388483cee5371dae0543fa68b75503ba Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 13 Jul 2009 11:22:10 +0200 Subject: [PATCH] isl_basic_map_is_empty: remove stale sample --- isl_map.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/isl_map.c b/isl_map.c index 77c133f..f7efcb7 100644 --- a/isl_map.c +++ b/isl_map.c @@ -3523,6 +3523,8 @@ int isl_basic_map_is_empty(struct isl_basic_map *bmap) if (contains) return 0; } + isl_vec_free(bmap->sample); + bmap->sample = NULL; bset = isl_basic_map_underlying_set(isl_basic_map_copy(bmap)); if (!bset) return -1; @@ -3530,8 +3532,7 @@ int isl_basic_map_is_empty(struct isl_basic_map *bmap) if (!sample) return -1; empty = sample->size == 0; - if (bmap->sample) - isl_vec_free(bmap->sample); + isl_vec_free(bmap->sample); bmap->sample = sample; if (empty) ISL_F_SET(bmap, ISL_BASIC_MAP_EMPTY); -- 2.7.4