From: erg Date: Tue, 25 Mar 2008 16:28:27 +0000 (+0000) Subject: Fix bug 1324. X-Git-Tag: LAST_LIBGRAPH~32^2~4444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c12ea5741ddcacde5ee5e31e0005ae62ca5f5f9d;p=graphviz Fix bug 1324. --- diff --git a/lib/common/emit.c b/lib/common/emit.c index d0e0ddc11..e68908620 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -2528,10 +2528,12 @@ static int style_token(char **s, agxbuf * xb) static unsigned char outbuf[SMALLBUF]; static agxbuf ps_xb; +#if 0 static void cleanup(void) { agxbfree(&ps_xb); } +#endif /* parse_style: * This is one of the worse internal designs in graphviz. @@ -2554,7 +2556,9 @@ char **parse_style(char *s) if (is_first) { agxbinit(&ps_xb, SMALLBUF, outbuf); +#if 0 atexit(cleanup); +#endif is_first = FALSE; } diff --git a/lib/common/utils.c b/lib/common/utils.c index 799edcc38..c7f8dc363 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -248,11 +248,13 @@ edge_t *debug_getedge(graph_t * g, char *s0, char *s1) static unsigned char userbuf[SMALLBUF]; static agxbuf xb; +#if 0 static void cleanup(void) { agxbfree(&xb); } #endif +#endif char *gvUsername(void) { @@ -262,7 +264,9 @@ char *gvUsername(void) struct passwd *p; if (first) { agxbinit(&xb, SMALLBUF, userbuf); +#if 0 atexit(cleanup); +#endif first = 0; } p = (struct passwd *) getpwuid(getuid());