isl_map_simple_hull: plug memory leak
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 22 Jan 2009 14:10:28 +0000 (15:10 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 22 Jan 2009 14:10:28 +0000 (15:10 +0100)
The leak was introduced in 4433b45d31f7f5461ee372a8a4aa2d3a955f96b5
(isl_map_underlying_set: align divs before calling this function).

isl_convex_hull.c

index a5d45da..7fa1e38 100644 (file)
@@ -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;