From: Matthew Fernandez Date: Fri, 18 Nov 2022 01:12:52 +0000 (-0800) Subject: neatogen newItem: use cgraph wrapper for allocation X-Git-Tag: 7.0.3~11^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=998ba68b887958a10db26cf4208e05a0ed0f4008;p=graphviz 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. --- 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;