From: Matthew Fernandez Date: Fri, 2 Sep 2022 01:28:56 +0000 (-0700) Subject: smyrna new_attr: fix unchecked allocation failure X-Git-Tag: 6.0.1~13^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=561192716b616e8997e8c6299b18b94a64467afc;p=graphviz smyrna new_attr: fix unchecked allocation failure --- diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index bc0da134d..6cedf0799 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -23,6 +23,7 @@ #include #include "gvprpipe.h" #include +#include #include #include #include @@ -61,7 +62,7 @@ static void free_attr(attr_t *at) { } static attr_t *new_attr(void) { - attr_t *attr = malloc(sizeof(attr_t)); + attr_t *attr = gv_alloc(sizeof(attr_t)); attr->defValG = NULL; attr->defValN = NULL; attr->defValE = NULL;