diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2016-10-25 21:30:15 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-10-26 15:46:26 +1000 |
commit | 20a3f99eba5001925b8b313da3accb7900eb1927 (patch) | |
tree | 000812198b71b0092e016cf3fa6f3a168e5740d4 | |
parent | 8f349feac24aacc958bd816afcc52380764e3d92 (diff) |
Plug a memory leak
This was introduced in 8ea762f.
Reported-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Emilio Pozuelo Monfort <pochu@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/FontNames.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FontNames.c b/src/FontNames.c index e55f338c..3e23b5f4 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; |