]> granicus.if.org Git - graphviz/commitdiff
Don't strdup() font name or color. Inserting the font into the dictionary
authorEmden R. Gansner <erg@alum.mit.edu>
Fri, 8 Nov 2013 22:35:47 +0000 (17:35 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Fri, 8 Nov 2013 22:35:47 +0000 (17:35 -0500)
will do this now.

lib/common/htmllex.c

index e21c93740f39d14a4d35a8fd245545665fcac42f..7470f6592c27aad11c7274e4ca50a6951d4dea82 100644 (file)
@@ -406,13 +406,13 @@ static int colspanfn(htmlcell_t * p, char *v)
 
 static int fontcolorfn(textfont_t * p, char *v)
 {
-    p->color = strdup(v);
+    p->color = v;
     return 0;
 }
 
 static int facefn(textfont_t * p, char *v)
 {
-    p->name = strdup(v);
+    p->name = v;
     return 0;
 }