diff --git a/src/spicelib/devices/bsim4v5/b4v5check.c b/src/spicelib/devices/bsim4v5/b4v5check.c index a4ac8dbc2..1caf03190 100644 --- a/src/spicelib/devices/bsim4v5/b4v5check.c +++ b/src/spicelib/devices/bsim4v5/b4v5check.c @@ -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); }