From: Matthew Fernandez Date: Sat, 17 Sep 2022 00:27:26 +0000 (-0700) Subject: glcomp glCompSetAddNewTexLabel: fix unchecked allocation failures X-Git-Tag: 6.0.2~33^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=192545322eec6bd56285ba622636d4449763ba5d;p=graphviz glcomp glCompSetAddNewTexLabel: fix unchecked allocation failures --- diff --git a/lib/glcomp/glcomptexture.c b/lib/glcomp/glcomptexture.c index 05a170fc8..1d9fce0b2 100644 --- a/lib/glcomp/glcomptexture.c +++ b/lib/glcomp/glcomptexture.c @@ -12,8 +12,6 @@ #include #include -#include - static glCompTex *glCompSetAddNewTexture(glCompSet * s, int width, int height, unsigned char *data, int is2D) @@ -136,8 +134,8 @@ glCompTex *glCompSetAddNewTexLabel(glCompSet * s, char *def, int fs, return NULL; } - t->def = strdup(def); - t->text = strdup(text); + t->def = gv_strdup(def); + t->text = gv_strdup(text); t->type = glTexLabel; return t; }