plug a memory leak when executing `shell'

This commit is contained in:
rlar 2012-08-14 21:00:21 +02:00
parent fa81e9d007
commit ae6a16e3e4
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ com_shell(wordlist *wl)
if (wl) {
com = wl_flatten(wl);
system(com);
tfree(com);
} else
system(shell);
#endif