From 7a1789df419be67cfade496faa91a242571e6e0d Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 18 Oct 2005 18:28:12 +0000 Subject: [PATCH] Free memory allocated in libgd --- lib/common/gdtextsize.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.40.0