From 01b6ad2460f64d92670ec807d80b5c3a3f91ce4e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 8 Jan 2017 16:17:06 +0100 Subject: [PATCH] isl_mat_unimodular_complete: add memory management annotations Signed-off-by: Sven Verdoolaege --- include/isl/mat.h | 2 +- isl_mat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/isl/mat.h b/include/isl/mat.h index 63f8ba7b..fc21fd24 100644 --- a/include/isl/mat.h +++ b/include/isl/mat.h @@ -93,7 +93,7 @@ __isl_give isl_mat *isl_mat_add_zero_rows(__isl_take isl_mat *mat, unsigned n); void isl_mat_col_add(__isl_keep isl_mat *mat, int dst_col, int src_col); -struct isl_mat *isl_mat_unimodular_complete(struct isl_mat *M, int row); +__isl_give isl_mat *isl_mat_unimodular_complete(__isl_take isl_mat *M, int row); __isl_give isl_mat *isl_mat_from_row_vec(__isl_take isl_vec *vec); __isl_give isl_mat *isl_mat_concat(__isl_take isl_mat *top, diff --git a/isl_mat.c b/isl_mat.c index a0aa1f40..7bb88246 100644 --- a/isl_mat.c +++ b/isl_mat.c @@ -1545,7 +1545,7 @@ __isl_give isl_mat *isl_mat_col_neg(__isl_take isl_mat *mat, int col) return mat; } -struct isl_mat *isl_mat_unimodular_complete(struct isl_mat *M, int row) +__isl_give isl_mat *isl_mat_unimodular_complete(__isl_take isl_mat *M, int row) { int r; struct isl_mat *H = NULL, *Q = NULL; -- 2.11.4.GIT