isl_input.c: accept_affine_list: plug memory leak on error path
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 30 Nov 2012 16:55:30 +0000 (17:55 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 30 Nov 2012 22:38:28 +0000 (23:38 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_input.c

index 3450d87..f2e57e7 100644 (file)
@@ -700,7 +700,7 @@ static __isl_give isl_pw_aff_list *accept_affine_list(struct isl_stream *s,
                list = isl_pw_aff_list_concat(list,
                                isl_pw_aff_list_from_pw_aff(pwaff));
                if (!list)
-                       return NULL;
+                       goto error;
        }
 
        isl_space_free(dim);