[Scummvm-git-logs] scummvm master -> 7198dd059631c764df6018e2aa7c47e56a384135
wjp
wjp at usecode.org
Fri Sep 29 18:16:10 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7198dd0596 GUI: Fix memory leak with empty debugger input
Commit: 7198dd059631c764df6018e2aa7c47e56a384135
https://github.com/scummvm/scummvm/commit/7198dd059631c764df6018e2aa7c47e56a384135
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2017-09-29T18:15:49+02:00
Commit Message:
GUI: Fix memory leak with empty debugger input
Changed paths:
gui/debugger.cpp
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index b18e50b..ce4661e 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;
More information about the Scummvm-git-logs
mailing list