From: Matthew Fernandez Date: Sun, 28 Aug 2022 15:52:24 +0000 (-0700) Subject: gml2gv mkEdge: fix unchecked allocation failure X-Git-Tag: 6.0.1~17^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=847ae1dc50f6bdd7723c8a2069998396a3dd064c;p=graphviz gml2gv mkEdge: fix unchecked allocation failure --- diff --git a/cmd/tools/gmlparse.y b/cmd/tools/gmlparse.y index bc59cf2a5..9c438b936 100644 --- a/cmd/tools/gmlparse.y +++ b/cmd/tools/gmlparse.y @@ -192,7 +192,7 @@ mkNode (void) static gmledge* mkEdge (void) { - gmledge* ep = NEW(gmledge); + gmledge* ep = gv_alloc(sizeof(gmledge)); ep->attrlist = dtopen (&attrDisc, Dtqueue); ep->source = NULL; ep->target = NULL;