From: Sven Verdoolaege Date: Thu, 22 Jan 2009 14:10:28 +0000 (+0100) Subject: isl_map_simple_hull: plug memory leak X-Git-Tag: isl-0.01~309 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=350d59fe656293a3437d40a50a2c56c0c3dfb49a;p=platform%2Fupstream%2Fisl.git isl_map_simple_hull: plug memory leak The leak was introduced in 4433b45d31f7f5461ee372a8a4aa2d3a955f96b5 (isl_map_underlying_set: align divs before calling this function). --- diff --git a/isl_convex_hull.c b/isl_convex_hull.c index a5d45da..7fa1e38 100644 --- a/isl_convex_hull.c +++ b/isl_convex_hull.c @@ -1275,7 +1275,7 @@ struct isl_basic_map *isl_map_simple_hull(struct isl_map *map) bset = isl_basic_set_finalize(bset); bset = isl_basic_set_convex_hull(bset); - hull = isl_basic_map_overlying_set(bset, isl_basic_map_copy(model)); + hull = isl_basic_map_overlying_set(bset, model); isl_set_free(set); return hull;