From: Matthew Fernandez Date: Sat, 15 Oct 2022 18:05:00 +0000 (-0700) Subject: common emit_edge_graphics: fix unchecked allocation failure X-Git-Tag: 7.0.0~3^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69d9446478f04945ad1f80a2e382ab85a6f7256e;p=graphviz common emit_edge_graphics: fix unchecked allocation failure --- 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])