isl_pw_*_realign_domain: plug memory leak on error path
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 18 Jul 2012 15:52:11 +0000 (17:52 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 27 Jul 2012 16:20:09 +0000 (18:20 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_pw_templ.c

index 8f43fe6..fba2fa8 100644 (file)
@@ -221,7 +221,7 @@ __isl_give PW *FN(PW,realign_domain)(__isl_take PW *pw,
 
        pw = FN(PW,cow)(pw);
        if (!pw || !exp)
-               return NULL;
+               goto error;
 
        for (i = 0; i < pw->n; ++i) {
                pw->p[i].set = isl_set_realign(pw->p[i].set,