cktntask.c: remove meory leak

This commit is contained in:
h_vogt 2012-12-22 10:39:15 +01:00
parent ead07878ec
commit 237fd538d1
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ CKTnewTask(CKTcircuit *ckt, TSKtask **taskPtr, IFuid taskName, TSKtask **defPtr)
NG_IGNORE(ckt);
FREE(*taskPtr); /* clear old task upon repeated calls to tran etc.*/
*taskPtr = TMALLOC(TSKtask, 1);
if (*taskPtr == NULL)
return(E_NOMEM);