From 847ae1dc50f6bdd7723c8a2069998396a3dd064c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 28 Aug 2022 08:52:24 -0700 Subject: [PATCH] gml2gv mkEdge: fix unchecked allocation failure --- cmd/tools/gmlparse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0