Browse Source

inperror.c, release errMsg when it has been consumed

pre-master-46
rlar 13 years ago
parent
commit
e67e9da202
  1. 1
      src/spicelib/parser/inperror.c

1
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*/ /*CDHW Lots of things set errMsg but it is never used so let's hack it in CDHW*/
if ( errMsg ) { if ( errMsg ) {
val = errMsg; val = errMsg;
errMsg = NULL;
} else } else
/*CDHW end of hack CDHW*/ /*CDHW end of hack CDHW*/
val = copy(SPerror(type)); val = copy(SPerror(type));

Loading…
Cancel
Save