diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-20 00:59:16 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-06-22 11:30:47 +0200 |
commit | e63d9de4565b97645956adf19d7f162ae0d471bd (patch) | |
tree | 4592779e9f82c1b1d2930874d09d1af0fe4d8a65 /nx-X11/programs/Xserver/hw/nxagent/NXrender.c | |
parent | 78eff73e4a8cf6a428dd4bd5ed50e0515ec8794f (diff) | |
download | nx-libs-e63d9de4565b97645956adf19d7f162ae0d471bd.tar.gz nx-libs-e63d9de4565b97645956adf19d7f162ae0d471bd.tar.bz2 nx-libs-e63d9de4565b97645956adf19d7f162ae0d471bd.zip |
NXrender: fix another memleak
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/NXrender.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXrender.c | 6 |
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; |