From: Matthew Fernandez Date: Sat, 15 Oct 2022 18:02:53 +0000 (-0700) Subject: common parseSegs: fix unchecked allocation failure X-Git-Tag: 7.0.0~3^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f596a76e3f68122708ece0a7471e50d906bdf66c;p=graphviz common parseSegs: fix unchecked allocation failure --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 8fd39de19..a298afe68 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -475,7 +475,7 @@ parseSegs (char* clrs, int nseg, colorsegs_t** psegs) { colorsegs_t* segs = NEW(colorsegs_t); colorseg_t* s; - char* colors = strdup (clrs); + char* colors = gv_strdup(clrs); char* color; int cnum = 0; double v, left = 1;