plug a memory leak

This commit is contained in:
Holger Vogt 2021-12-23 14:38:09 +01:00
parent a8d8600faa
commit c7bc84943a
1 changed files with 2 additions and 1 deletions

View File

@ -771,6 +771,7 @@ CKTcircuit *ckt)
}
}
wordlist* wlfree = wlstart;
if (wlstart->wl_next) {
if ((fplog = fopen("bsim4v5.out", "w")) != NULL) {
while (wlstart) {
@ -788,7 +789,7 @@ CKTcircuit *ckt)
}
}
wl_free(wlstart);
wl_free(wlfree);
return(Fatal_Flag);
}