diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2012-12-01 00:29:56 +0100 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2012-12-01 17:38:07 +0100 |
commit | 5ee2cb71bd59bf8f86be6cbfbccced1aa6ae47a0 (patch) | |
tree | 612a086be56454c905acf4154f68421c20260150 /isl_tab_pip.c | |
parent | 549d43e8a53ab902169fdf0d481bd98cf33f6da5 (diff) | |
download | isl-5ee2cb71bd59bf8f86be6cbfbccced1aa6ae47a0.tar.gz isl-5ee2cb71bd59bf8f86be6cbfbccced1aa6ae47a0.tar.bz2 isl-5ee2cb71bd59bf8f86be6cbfbccced1aa6ae47a0.zip |
isl_tab_pip.c: add_parametric_cut: plug memory leak on error path
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Diffstat (limited to 'isl_tab_pip.c')
-rw-r--r-- | isl_tab_pip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/isl_tab_pip.c b/isl_tab_pip.c index 3f6673f2..f131ccf4 100644 --- a/isl_tab_pip.c +++ b/isl_tab_pip.c @@ -1958,6 +1958,7 @@ static int add_parametric_cut(struct isl_tab *tab, int row, n = tab->n_div; d = context->op->get_div(context, tab, div); + isl_vec_free(div); if (d < 0) return -1; @@ -2023,8 +2024,6 @@ static int add_parametric_cut(struct isl_tab *tab, int row, if (tab->row_sign) tab->row_sign[tab->con[r].index] = isl_tab_row_neg; - isl_vec_free(div); - row = tab->con[r].index; if (d >= n && context->op->detect_equalities(context, tab) < 0) |