summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/gdttf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/gd/gdttf.c b/ext/gd/gdttf.c
index 044e21c6b2..13587ffd88 100644
--- a/ext/gd/gdttf.c
+++ b/ext/gd/gdttf.c
@@ -333,6 +333,7 @@ fontFetch ( char **error, void *key )
a = (font_t *)malloc(sizeof(font_t));
#ifdef VIRTUAL_DIR
+ /* a->fontname will be freed in fontRelease() later on */
if (virtual_filepath(b->fontname, &a->fontname)) {
*error = "Could not find/open font";
return NULL;