diff options
author | Pierre Joye <pierre.php@gmail.com> | 2022-01-30 10:59:22 +0700 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2022-01-30 10:59:22 +0700 |
commit | cfe84e9b3b1e1abfadc748b987e66a99e98ca592 (patch) | |
tree | 288ab7cc2a8244343952dd2497c2a251d08a005d | |
parent | 0d50039b141b0efb02f927a089ea18377fa50bca (diff) | |
download | libgd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"; } } |