From: ellson Date: Tue, 18 Oct 2005 18:28:12 +0000 (+0000) Subject: Free memory allocated in libgd X-Git-Tag: LAST_LIBGRAPH~32^2~7320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a1789df419be67cfade496faa91a242571e6e0d;p=graphviz Free memory allocated in libgd --- diff --git a/lib/common/gdtextsize.c b/lib/common/gdtextsize.c index 7c1ab38e7..9c3a1c664 100644 --- a/lib/common/gdtextsize.c +++ b/lib/common/gdtextsize.c @@ -125,6 +125,7 @@ char *gd_textsize(textline_t * textline, char *fontname, double fontsz, } *fontpath = strex.fontpath; + if (strex.fontpath) free (strex.fontpath); if (textline->str && textline->str[0]) { /* can't use brect on some archtectures if strlen 0 */