This was introduced in 8ea762f.

Reported-by: Julien Cristau <[email protected]>
Signed-off-by: Emilio Pozuelo Monfort <[email protected]>
---
 src/FontNames.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/FontNames.c b/src/FontNames.c
index e55f338..3e23b5f 100644
--- a/src/FontNames.c
+++ b/src/FontNames.c
@@ -98,12 +98,14 @@ int *actualCount)   /* RETURN */
                    *ch = '\0';  /* and replace with null-termination */
                    count++;
                } else {
+                    Xfree(ch);
                     Xfree(flist);
                     flist = NULL;
                     count = 0;
                     break;
                }
            } else {
+                Xfree(ch);
                 Xfree(flist);
                 flist = NULL;
                 count = 0;
-- 
2.9.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to