From c7bc84943a775480f72e17bddf8cb3b965d5492e Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 23 Dec 2021 14:38:09 +0100 Subject: [PATCH] plug a memory leak --- src/spicelib/devices/bsim4v5/b4v5check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }