Commit 88bc5261 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Keyboard.c: set variables to NULL after free

parent 94fae749
...@@ -1065,6 +1065,7 @@ XkbError: ...@@ -1065,6 +1065,7 @@ XkbError:
ErrorF("Error parsing config file.\n"); ErrorF("Error parsing config file.\n");
free(nxagentXkbConfigFilePath); free(nxagentXkbConfigFilePath);
nxagentXkbConfigFilePath = NULL;
fclose(file); fclose(file);
goto XkbError; goto XkbError;
...@@ -1095,6 +1096,7 @@ XkbError: ...@@ -1095,6 +1096,7 @@ XkbError:
options = config.options; options = config.options;
free(nxagentXkbConfigFilePath); free(nxagentXkbConfigFilePath);
nxagentXkbConfigFilePath = NULL;
fclose(file); fclose(file);
} }
...@@ -1114,6 +1116,7 @@ XkbError: ...@@ -1114,6 +1116,7 @@ XkbError:
nxagentBell, nxagentChangeKeyboardControl); nxagentBell, nxagentChangeKeyboardControl);
free(nxagentXkbConfigFilePath); free(nxagentXkbConfigFilePath);
nxagentXkbConfigFilePath = NULL;
if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0) if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment