isl_multi_*_realign_domain: plug memory leak on error path
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 30 Nov 2012 23:21:40 +0000 (00:21 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 1 Dec 2012 16:38:07 +0000 (17:38 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_multi_templ.c

index 338d915..7080493 100644 (file)
@@ -345,7 +345,7 @@ __isl_give MULTI(BASE) *FN(MULTI(BASE),realign_domain)(
 
        multi = FN(MULTI(BASE),cow)(multi);
        if (!multi || !exp)
-               return NULL;
+               goto error;
 
        for (i = 0; i < multi->n; ++i) {
                multi->p[i] = FN(EL,realign_domain)(multi->p[i],