From: Sven Verdoolaege Date: Mon, 13 Jul 2009 09:22:10 +0000 (+0200) Subject: isl_basic_map_is_empty: remove stale sample X-Git-Tag: isl-0.01~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28f22dc7388483cee5371dae0543fa68b75503ba;p=platform%2Fupstream%2Fisl.git isl_basic_map_is_empty: remove stale sample --- 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);