From: erg Date: Sat, 23 Apr 2005 22:32:43 +0000 (+0000) Subject: Fix bug 691 X-Git-Tag: LAST_LIBGRAPH~32^2~7634 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=310957801b9dce4f160e81cf915cc3c207977736;p=graphviz Fix bug 691 --- diff --git a/lib/graph/parser.y b/lib/graph/parser.y index b51169aa4..40d0fdf3c 100644 --- a/lib/graph/parser.y +++ b/lib/graph/parser.y @@ -418,7 +418,7 @@ node_port : /* empty */ node_stmt : node_id {Current_class = TAG_NODE; N = (Agnode_t*)($1.obj);} opt_attr_list - {free($1.port);Current_class = TAG_GRAPH; /* reset */} + {agstrfree($1.port);Current_class = TAG_GRAPH; /* reset */} ; edge_stmt : node_id @@ -476,6 +476,9 @@ qsymbol : T_qsymbol {$$ = $1; } #ifdef UNUSED /* grammar allowing port variants */ /* at present, these are not used, so we remove them from the grammar */ +/* NOTE: If used, these should be rewritten to take into account the */ +/* move away from using ':' in the string and that symbols come from */ +/* agstrdup and need to be freed. */ node_port : /* empty */ | port_location | port_angle /* undocumented */