Browse Source

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

pre-master-46
Holger Vogt 8 years ago
parent
commit
b6b66c71bd
  1. 2
      src/frontend/runcoms2.c

2
src/frontend/runcoms2.c

@ -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;

Loading…
Cancel
Save