aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-08-12 17:38:35 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-14 00:08:33 +0100
commit88bc52615cdc3d348d1d6565e9ea40b23c226b29 (patch)
tree7faf522304386b0a8143536133018f2cb9943157
parent94fae7497c8499b5106d6ccaa85ad11c8e4f95d6 (diff)
downloadnx-libs-88bc52615cdc3d348d1d6565e9ea40b23c226b29.tar.gz
nx-libs-88bc52615cdc3d348d1d6565e9ea40b23c226b29.tar.bz2
nx-libs-88bc52615cdc3d348d1d6565e9ea40b23c226b29.zip
Keyboard.c: set variables to NULL after free
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 1cb5cc9d7..951c30cc8 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -1065,6 +1065,7 @@ XkbError:
ErrorF("Error parsing config file.\n");
free(nxagentXkbConfigFilePath);
+ nxagentXkbConfigFilePath = NULL;
fclose(file);
goto XkbError;
@@ -1095,6 +1096,7 @@ XkbError:
options = config.options;
free(nxagentXkbConfigFilePath);
+ nxagentXkbConfigFilePath = NULL;
fclose(file);
}
@@ -1114,6 +1116,7 @@ XkbError:
nxagentBell, nxagentChangeKeyboardControl);
free(nxagentXkbConfigFilePath);
+ nxagentXkbConfigFilePath = NULL;
if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0)
{