From 87611be6af3ba74dd2b143d5299dfd94144d5833 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 9 Jun 2011 13:37:13 +0200 Subject: [PATCH] cloog_loop_free_parts: free loop->unsimplified Since loop->unsimplified was introduced in 62da9f7 (optionally store domains of scattering dimensions in clast user statements, Mon Sep 27 18:50:03 2010 +0200), it was only getting freed in cloog_loop_free and not in cloog_loop_free_parts. Now, loop->unsimplified is only set at the end of the computation, so cloog_loop_free_parts is usually not called on a loop with unsimplified set. In fact, if it is, then this would mean that the information about the unsimplied domain is lost. Still, if we are losing the information anyway, we might as well free it. Signed-off-by: Sven Verdoolaege --- source/loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/loop.c b/source/loop.c index d6145aa..b15c52a 100644 --- a/source/loop.c +++ b/source/loop.c @@ -247,6 +247,7 @@ int domain, block, inner, next ; if ((inner) && (loop->inner != NULL)) cloog_loop_free_parts(loop->inner,domain,block,inner,1) ; + cloog_domain_free(loop->unsimplified); cloog_stride_free(loop->stride); free(loop) ; if (next) -- 2.11.4.GIT