aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/debugger.cpp4
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, &param[0]);
- if (num_params == 0)
+ if (num_params == 0) {
+ free(input);
return true;
+ }
// Handle commands first
bool result;