From: Matthew Fernandez Date: Sat, 15 Oct 2022 18:00:18 +0000 (-0700) Subject: smyrna loadGraph: fix unchecked allocation failure X-Git-Tag: 7.0.0~3^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9eac74b98a2c2c8b229615b062e840c859ca37b;p=graphviz smyrna loadGraph: fix unchecked allocation failure --- diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 6bd078e02..4263431ae 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -436,7 +436,7 @@ static Agraph_t *loadGraph(char *filename) agclose (g); return 0; } - view->Topview->Graphdata.GraphFileName = strdup(filename); + view->Topview->Graphdata.GraphFileName = gv_strdup(filename); return g; }