From 39285342b71fac54a89c64fb8d8720dd70cfea78 Mon Sep 17 00:00:00 2001 From: Walter Mitty Date: Mon, 23 Jun 2025 16:56:00 +0800 Subject: [PATCH] Change free to free_aligned --- src/gmt_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmt_io.c b/src/gmt_io.c index 4d46b3bda02..1ba919936fe 100644 --- a/src/gmt_io.c +++ b/src/gmt_io.c @@ -9209,7 +9209,7 @@ void gmtlib_free_vector_ptr (struct GMT_CTRL *GMT, struct GMT_VECTOR *V, bool fr for (unsigned int k = 0; k < V->n_headers; k++) gmt_M_str_free (V->header[k]); gmt_M_free (GMT, V->header); } - gmt_M_free (GMT, V->data); /* Sometimes we free a V that has nothing allocated so must check */ + gmt_M_free_aligned (GMT, V->data); /* Sometimes we free a V that has nothing allocated so must check */ gmt_M_free (GMT, V->type); gmt_M_free (GMT, VH->alloc_mode); gmt_M_free (GMT, V->hidden);