From cfe84e9b3b1e1abfadc748b987e66a99e98ca592 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 30 Jan 2022 10:59:22 +0700 Subject: Fix #808, free info. Not sure what happens, it keeps being removed on cherry-pick to 2.3.... --- src/gdft.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gdft.c b/src/gdft.c index 47a5cfc..4e72424 100644 --- a/src/gdft.c +++ b/src/gdft.c @@ -1433,6 +1433,7 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImagePtr im, int *brect, int fg, const gdFree(text); gdCacheDelete (tc_cache); gdMutexUnlock (gdFontCacheMutex); + gdFree(info); return "Problem allocating memory"; } xshow_pos = 0; @@ -1445,6 +1446,7 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImagePtr im, int *brect, int fg, const gdFree(text); gdCacheDelete (tc_cache); gdMutexUnlock (gdFontCacheMutex); + gdFree(info); return "Problem allocating memory"; } } -- cgit v1.2.1