isl_access_info_add_source: plug memory leak on error path
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 22 Aug 2012 09:11:49 +0000 (11:11 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 2 Sep 2012 10:24:27 +0000 (12:24 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_flow.c

index 3d07e32..2443394 100644 (file)
@@ -277,7 +277,7 @@ __isl_give isl_access_info *isl_access_info_add_source(
        isl_ctx *ctx;
 
        if (!acc)
-               return NULL;
+               goto error;
        ctx = isl_map_get_ctx(acc->sink.map);
        isl_assert(ctx, acc->n_must + acc->n_may < acc->max_source, goto error);