From f596a76e3f68122708ece0a7471e50d906bdf66c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Oct 2022 11:02:53 -0700 Subject: [PATCH] common parseSegs: fix unchecked allocation failure --- lib/common/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0