From 998ba68b887958a10db26cf4208e05a0ed0f4008 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 17 Nov 2022 17:12:52 -0800 Subject: [PATCH] neatogen newItem: use cgraph wrapper for allocation The lib/cgraph/alloc.h wrappers are similar to the older lib/common/memory.h wrappers except (1) they are header-only and (2) they live in a directory (cgraph) that is at the root of the dependency tree. The long term plan is to replace all use of lib/common/memory.h with lib/cgraph/alloc.h. --- lib/neatogen/multispline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neatogen/multispline.c b/lib/neatogen/multispline.c index 061b756cb..57eea9f89 100644 --- a/lib/neatogen/multispline.c +++ b/lib/neatogen/multispline.c @@ -77,7 +77,7 @@ static int cmpItem(Dt_t * d, int p1[], int p2[], Dtdisc_t * disc) */ static void *newItem(Dt_t * d, item * objp, Dtdisc_t * disc) { - item *newp = NEW(item); + item *newp = gv_alloc(sizeof(item)); (void)d; (void)disc; -- 2.50.1