Commit 7d25771d authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keystroke.c: use SAFE_free

parent 8080ad26
...@@ -294,7 +294,7 @@ void nxagentInitKeystrokes(Bool force) ...@@ -294,7 +294,7 @@ void nxagentInitKeystrokes(Bool force)
if (force) { if (force) {
if (map != default_map) if (map != default_map)
{ {
free(map); SAFE_free(map);
map = default_map; map = default_map;
} }
fprintf(stderr, "Info: re-reading keystrokes configuration\n"); fprintf(stderr, "Info: re-reading keystrokes configuration\n");
...@@ -414,7 +414,7 @@ void nxagentInitKeystrokes(Bool force) ...@@ -414,7 +414,7 @@ void nxagentInitKeystrokes(Bool force)
#endif #endif
filename = NULL; filename = NULL;
} }
free(homepath); SAFE_free(homepath);
if (map == default_map) if (map == default_map)
{ {
......
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