aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-01-03 01:17:59 +0100
committerUlrich Sibiller <uli42@gmx.de>2018-01-07 01:27:07 +0100
commit054ae844758a306df4aacd40c46780195853a8f8 (patch)
tree5369382b410287a973b1dfe4dd8aed322da25db3 /nx-X11
parent56fa234856428ca2de92c27904edb1fe28bc4fdc (diff)
downloadnx-libs-054ae844758a306df4aacd40c46780195853a8f8.tar.gz
nx-libs-054ae844758a306df4aacd40c46780195853a8f8.tar.bz2
nx-libs-054ae844758a306df4aacd40c46780195853a8f8.zip
Font.c: free possibly allocated mem
even if we issue a FatalError afterwards
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Font.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Font.c b/nx-X11/programs/Xserver/hw/nxagent/Font.c
index 540ad79e2..197f0c84a 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Font.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Font.c
@@ -916,6 +916,11 @@ static void nxagentCollectFailedFont(FontPtr fpt, XID id)
if (nxagentFailedToReconnectFonts.font == NULL || nxagentFailedToReconnectFonts.id == NULL)
{
+ free(nxagentFailedToReconnectFonts.font);
+ nxagentFailedToReconnectFonts.font = NULL;
+ free(nxagentFailedToReconnectFonts.id);
+ nxagentFailedToReconnectFonts.id = NULL;
+
FatalError("Font: font not reconnected memory allocation failed!.\n");
}