From: Matthew Fernandez Date: Sat, 15 Oct 2022 18:01:50 +0000 (-0700) Subject: common initMapData: fix unchecked allocation failure X-Git-Tag: 7.0.0~3^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a1408ee1cb378da924b7e012ff082238d073e21;p=graphviz common initMapData: fix unchecked allocation failure --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 4874975c9..8fd39de19 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -169,7 +170,7 @@ initMapData (GVJ_t* job, char* lbl, char* url, char* tooltip, char* target, char assigned = 1; } else if (obj->label) { - obj->tooltip = strdup(obj->label); + obj->tooltip = gv_strdup(obj->label); assigned = 1; } }