aboutsummaryrefslogtreecommitdiff
path: root/fontconfig
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig')
-rw-r--r--fontconfig/src/fcdir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fontconfig/src/fcdir.c b/fontconfig/src/fcdir.c
index d8b094fbc..4399afc4a 100644
--- a/fontconfig/src/fcdir.c
+++ b/fontconfig/src/fcdir.c
@@ -211,6 +211,9 @@ bail2:
bail1:
closedir (d);
bail:
+ if (file)
+ free (file);
+
return ret;
}