From 31ee05ceef6aa484512159b866de026addc50966 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 19 Jul 2012 20:25:06 +0200 Subject: [PATCH] mw_coms.c, fix the cleanup using wl_cons() --- src/frontend/mw_coms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/mw_coms.c b/src/frontend/mw_coms.c index 9079a087c..a58150433 100644 --- a/src/frontend/mw_coms.c +++ b/src/frontend/mw_coms.c @@ -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); }