plug a small memory leak (switch-oszillators.cir)

This commit is contained in:
Holger Vogt 2018-08-25 23:12:17 +02:00
parent 9332801382
commit b6b66c71bd
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ com_remcirc(wordlist *wl)
for (v = ft_curckt->ci_vars; v; v = next) {
next = v->va_next;
tfree(v->va_name);
if (v->va_type == CP_STRING)
tfree(v->va_string);
tfree(v);
}
ft_curckt->ci_vars = NULL;