From: Matthew Fernandez Date: Sun, 28 Aug 2022 15:51:53 +0000 (-0700) Subject: gml2gv mkNode: fix unchecked allocation failure X-Git-Tag: 6.0.1~17^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cbffe897d027d82b018a68ee655883880ac28c9;p=graphviz gml2gv mkNode: fix unchecked allocation failure --- diff --git a/cmd/tools/gmlparse.y b/cmd/tools/gmlparse.y index 1d463f321..bc59cf2a5 100644 --- a/cmd/tools/gmlparse.y +++ b/cmd/tools/gmlparse.y @@ -183,7 +183,7 @@ pushG (void) static gmlnode* mkNode (void) { - gmlnode* np = NEW(gmlnode); + gmlnode* np = gv_alloc(sizeof(gmlnode)); np->attrlist = dtopen (&attrDisc, Dtqueue); np->id = NULL; return np;