free errMsg only if available
This commit is contained in:
parent
646ac2dbcb
commit
565a0994b3
|
|
@ -35,6 +35,7 @@ CKTask(CKTcircuit *ckt, GENinstance *instance, int which, IFvalue *value, IFvalu
|
|||
if (error && ft_ngdebug) {
|
||||
printf("\nWarning: %s\n", errMsg);
|
||||
}
|
||||
FREE(errMsg);
|
||||
if (errMsg)
|
||||
FREE(errMsg);
|
||||
return(error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue