From: Matthew Fernandez Date: Sun, 28 Aug 2022 15:51:21 +0000 (-0700) Subject: gml2gv pushG: fix unchecked allocation failuregml2gv pushG: fix unchecked allocation... X-Git-Tag: 6.0.1~17^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef2a901e45a041b49106c380307fe6d55604098a;p=graphviz gml2gv pushG: fix unchecked allocation failuregml2gv pushG: fix unchecked allocation failure --- diff --git a/cmd/tools/gmlparse.y b/cmd/tools/gmlparse.y index 77cc819db..1d463f321 100644 --- a/cmd/tools/gmlparse.y +++ b/cmd/tools/gmlparse.y @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -164,7 +165,7 @@ popG (void) static void pushG (void) { - gmlgraph* g = NEW(gmlgraph); + gmlgraph* g = gv_alloc(sizeof(gmlgraph)); g->attrlist = dtopen(&attrDisc, Dtqueue); g->nodelist = dtopen(&nodeDisc, Dtqueue);