valgrind reports
This commit is contained in:
parent
c1486d7af9
commit
da470dc610
|
|
@ -102,7 +102,7 @@ pwl_state_init(struct pwl_state *this, VSRCinstance *here)
|
|||
#endif
|
||||
|
||||
if (!this)
|
||||
this = TMALLOC(struct pwl_state, 1);
|
||||
this = TMALLOC(struct pwl_state, 1); /* !! */
|
||||
|
||||
this->len = here->VSRCfunctionOrder;
|
||||
this->arr = here->VSRCcoeffs;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ static void copy_coeffs(VSRCinstance *here, IFvalue *value)
|
|||
if(here->VSRCcoeffs)
|
||||
tfree(here->VSRCcoeffs);
|
||||
|
||||
here->VSRCcoeffs = TMALLOC(double, n);
|
||||
here->VSRCcoeffs = TMALLOC(double, n); /* !! */
|
||||
here->VSRCfunctionOrder = n;
|
||||
here->VSRCcoeffsGiven = TRUE;
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ VSRCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state)
|
|||
}
|
||||
|
||||
if(here->VSRCbranch == 0) {
|
||||
error = CKTmkCur(ckt,&tmp,here->VSRCname,"branch");
|
||||
error = CKTmkCur(ckt,&tmp,here->VSRCname,"branch"); /* !! */
|
||||
if(error) return(error);
|
||||
here->VSRCbranch = tmp->number;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue