aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-20 00:59:16 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-22 11:30:47 +0200
commite63d9de4565b97645956adf19d7f162ae0d471bd (patch)
tree4592779e9f82c1b1d2930874d09d1af0fe4d8a65 /nx-X11/programs
parent78eff73e4a8cf6a428dd4bd5ed50e0515ec8794f (diff)
downloadnx-libs-e63d9de4565b97645956adf19d7f162ae0d471bd.tar.gz
nx-libs-e63d9de4565b97645956adf19d7f162ae0d471bd.tar.bz2
nx-libs-e63d9de4565b97645956adf19d7f162ae0d471bd.zip
NXrender: fix another memleak
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXrender.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXrender.c b/nx-X11/programs/Xserver/hw/nxagent/NXrender.c
index fd9c0be82..190f746a4 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXrender.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXrender.c
@@ -1004,7 +1004,11 @@ ProcRenderCompositeGlyphs (ClientPtr client)
elementsBase = malloc(nlist * sizeof(XGlyphElt8));
if (!elementsBase)
- return BadAlloc;
+ {
+ free(glyphsBase);
+ free(listsBase);
+ return BadAlloc;
+ }
buffer = (CARD8 *) (stuff + 1);
glyphs = glyphsBase;