aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2016-10-25 21:30:15 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-27 19:51:01 +0200
commit8d1126e97a75263d71b8bbfd7e20c16f70953850 (patch)
tree7181200cc6b6f0afc4a0f0bf10571195c334acf7 /nx-X11/lib/X11
parent5d4a7e071ac1c0f4badda89d7356a51a7f74ac2d (diff)
downloadnx-libs-8d1126e97a75263d71b8bbfd7e20c16f70953850.tar.gz
nx-libs-8d1126e97a75263d71b8bbfd7e20c16f70953850.tar.bz2
nx-libs-8d1126e97a75263d71b8bbfd7e20c16f70953850.zip
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>
Diffstat (limited to 'nx-X11/lib/X11')
-rw-r--r--nx-X11/lib/X11/FontNames.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/FontNames.c b/nx-X11/lib/X11/FontNames.c
index e55f338ca..3e23b5f49 100644
--- a/nx-X11/lib/X11/FontNames.c
+++ b/nx-X11/lib/X11/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;