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