Skip to content
Snippets Groups Projects
Commit b7f152c7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix memory leak when exiting debug build

CID 476253
parent 4d155e95
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -332,6 +332,7 @@ static enum debug_action script_debug_prompt(struct debugger *dbg, JSScript *scr ...@@ -332,6 +332,7 @@ static enum debug_action script_debug_prompt(struct debugger *dbg, JSScript *scr
if(strncmp(line, "quit\n", 5)==0 || if(strncmp(line, "quit\n", 5)==0 ||
strncmp(line, "q\n", 2)==0 strncmp(line, "q\n", 2)==0
) { ) {
free(line);
return (DEBUG_EXIT); return (DEBUG_EXIT);
} }
if(strncmp(line, "eval ", 5)==0 || if(strncmp(line, "eval ", 5)==0 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment