isl_sample.c: tab_shift_cone: use isl_tab_extend_cons instead of isl_tab_extend
commitfecc782165ba2e0fa5347659b38e44e858d38c22
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 17 Apr 2014 21:02:10 +0000 (17 23:02 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 17 Apr 2014 21:08:37 +0000 (17 23:08 +0200)
tree267aa06847b824dead3cb229ffcb373ef901ad91
parent319c8b63bc51a8664e54eb2cc14e4efce7f15591
isl_sample.c: tab_shift_cone: use isl_tab_extend_cons instead of isl_tab_extend

Since an isl_tab is not reference counted, there is no way for
tab_shift_cone to tell its callers that the isl_tab has already
been freed, possible resulting in double frees on errors
in isl_tab_detect_equalities.  tab_shift_cone calls isl_tab_extend
which is just a wrapper around isl_tab_extend_cons turning
the appropriate interface of returning -1 on error into a bad interface
of freeing the isl_tab and returning NULL.  Call isl_tab_extend_cons
directly instead.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_sample.c