From e67e9da2029c19a8c3493d3029dca3671b8aa075 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 15 Dec 2012 21:51:59 +0100 Subject: [PATCH] inperror.c, release errMsg when it has been consumed --- src/spicelib/parser/inperror.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spicelib/parser/inperror.c b/src/spicelib/parser/inperror.c index c06efef73..5882be06b 100644 --- a/src/spicelib/parser/inperror.c +++ b/src/spicelib/parser/inperror.c @@ -33,6 +33,7 @@ char *INPerror(int type) /*CDHW Lots of things set errMsg but it is never used so let's hack it in CDHW*/ if ( errMsg ) { val = errMsg; + errMsg = NULL; } else /*CDHW end of hack CDHW*/ val = copy(SPerror(type));