plug a memory leak when executing `shell'
This commit is contained in:
parent
fa81e9d007
commit
ae6a16e3e4
|
|
@ -54,6 +54,7 @@ com_shell(wordlist *wl)
|
||||||
if (wl) {
|
if (wl) {
|
||||||
com = wl_flatten(wl);
|
com = wl_flatten(wl);
|
||||||
system(com);
|
system(com);
|
||||||
|
tfree(com);
|
||||||
} else
|
} else
|
||||||
system(shell);
|
system(shell);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue