runcoms2.c: plug memory leak during remcirc

This commit is contained in:
h_vogt 2013-08-24 18:08:09 +02:00 committed by rlar
parent abbda029e1
commit 5f6f53f9ad
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ com_remcirc(wordlist *wl)
if_cktfree(ft_curckt->ci_ckt, ft_curckt->ci_symtab);
for (v = ft_curckt->ci_vars; v; v = next) {
next = v->va_next;
tfree(v->va_name);
tfree(v);
}
ft_curckt->ci_vars = NULL;