From 69d9446478f04945ad1f80a2e382ab85a6f7256e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Oct 2022 11:05:00 -0700 Subject: [PATCH] common emit_edge_graphics: 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 b638b0836..cfee1b400 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -2381,7 +2381,7 @@ static void emit_edge_graphics(GVJ_t * job, edge_t * e, char** styles) tmplist[j].y = pf3.y - numc2 * offlist[j].y; } lastcolor = headcolor = tailcolor = color; - colors = strdup(color); + colors = gv_strdup(color); for (cnum = 0, color = strtok(colors, ":"); color; cnum++, color = strtok(0, ":")) { if (!color[0]) -- 2.40.0