[PATCH libx11] Plug a memory leak
Emilio Pozuelo Monfort
pochu at debian.org
Tue Oct 25 19:30:15 UTC 2016
This was introduced in 8ea762f.
Reported-by: Julien Cristau <jcristau at debian.org>
Signed-off-by: Emilio Pozuelo Monfort <pochu at debian.org>
---
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
More information about the xorg-devel
mailing list