Browse files

fix memory leak of empty command line.

Signed-off-by: Tim Blechmann <tim@klingt.org>

git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/branches/3.4@9994 a380766d-ff14-0410-b294-a243070f3f08
  • Loading branch information...
1 parent 9bb1247 commit 12932b2a2301427a97f269f59f96339661183908 Tim Blechmann committed Mar 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 common/Source/lang/LangSource/SC_TerminalClient.cpp
View
2 common/Source/lang/LangSource/SC_TerminalClient.cpp
@@ -367,8 +367,8 @@ void SC_TerminalClient::commandLoop()
// If line wasn't empty, store it so that uparrow retrieves it
add_history(cmdLine);
interpretCmdLine(s_interpretPrintCmdLine, cmdLine);
- free(cmdLine);
}
+ free(cmdLine);
}
if(cmdLine == NULL){
printf("\nExiting sclang (ctrl-D)\n");

0 comments on commit 12932b2

Please sign in to comment.