From 2ce4c1592bca5c79d180ea94ab421e0ada8c7423 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 10 Aug 2018 22:03:02 +0200 Subject: [PATCH] a tiny memory leak --- src/xspice/mif/mifgetvalue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xspice/mif/mifgetvalue.c b/src/xspice/mif/mifgetvalue.c index d9583e726..2d873b465 100644 --- a/src/xspice/mif/mifgetvalue.c +++ b/src/xspice/mif/mifgetvalue.c @@ -117,6 +117,7 @@ MIFgetValue ( /* initialize stuff if array */ if(is_array) { token = MIFget_token(line, &token_type); + tfree(token); if(token_type != MIF_LARRAY_TOK) { *err = "Array parameter expected - No array delimiter found"; return(NULL);