diff options
-rw-r--r-- | gui/debugger.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp index b18e50b824..ce4661e9cb 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -297,8 +297,10 @@ bool Debugger::parseCommand(const char *inputOrig) { char *input = strdup(inputOrig); splitCommand(input, num_params, ¶m[0]); - if (num_params == 0) + if (num_params == 0) { + free(input); return true; + } // Handle commands first bool result; |