mw_coms.c, fix the cleanup using wl_cons()

This commit is contained in:
rlar 2012-07-19 20:25:06 +02:00
parent 8d0306c27a
commit 31ee05ceef
1 changed files with 2 additions and 2 deletions

View File

@ -114,14 +114,14 @@ com_removecirc(wordlist *wl)
if (ft_circuits && caux->ci_next) {
struct wordlist *wlist;
sprintf(buf, "%d", auxCir);
wlist = wl_cons(buf, NULL);
wlist = wl_cons(copy(buf), NULL);
com_scirc(wlist);
wl_free(wlist);
}
else if (ft_circuits) {
struct wordlist *wlist;
sprintf(buf, "%d", auxCir-1);
wlist = wl_cons(buf, NULL);
wlist = wl_cons(copy(buf), NULL);
com_scirc(wlist);
wl_free(wlist);
}