isl_union_map_is_empty: fix typo that resulted in memory leaks
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 10 Aug 2010 18:03:28 +0000 (20:03 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 10 Aug 2010 18:03:28 +0000 (20:03 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_union_map.c

index 999cd77..c8c5f9b 100644 (file)
@@ -992,7 +992,7 @@ __isl_give int isl_union_map_is_empty(__isl_keep isl_union_map *umap)
                return -1;
 
        if (isl_hash_table_foreach(umap->dim->ctx, &umap->table,
-                                  &sample_entry, &empty) < 0 && empty)
+                                  &empty_entry, &empty) < 0 && empty)
                return -1;
 
        return empty;