summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2022-01-30 10:59:22 +0700
committerPierre Joye <pierre.php@gmail.com>2022-01-30 10:59:22 +0700
commitcfe84e9b3b1e1abfadc748b987e66a99e98ca592 (patch)
tree288ab7cc2a8244343952dd2497c2a251d08a005d
parent0d50039b141b0efb02f927a089ea18377fa50bca (diff)
downloadlibgd-cfe84e9b3b1e1abfadc748b987e66a99e98ca592.tar.gz
Fix #808, free info. Not sure what happens, it keeps being removed on cherry-pick to 2.3....
-rw-r--r--src/gdft.c2
1 files changed, 2 insertions, 0 deletions
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";
}
}