Commit fd7e1f98 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Keyboard.c: rearrange code to make cppcheck happy

Otherwise it will (falsely) report "Memory pointed to by 'sessionpath' is freed twice."
parent 3c046997
......@@ -1696,7 +1696,10 @@ static char* getKeyboardFilePath(void)
free(sessionpath);
FatalError("malloc for keyboard file path failed.");
}
free(sessionpath);
else
{
free(sessionpath);
}
}
else
{
......
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