diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-01-03 01:17:59 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2018-01-07 01:27:07 +0100 |
commit | 054ae844758a306df4aacd40c46780195853a8f8 (patch) | |
tree | 5369382b410287a973b1dfe4dd8aed322da25db3 /nx-X11 | |
parent | 56fa234856428ca2de92c27904edb1fe28bc4fdc (diff) | |
download | nx-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.c | 5 |
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"); } |