valgrind reports

This commit is contained in:
rlar 2012-12-17 21:54:52 +01:00
parent c1486d7af9
commit da470dc610
3 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ pwl_state_init(struct pwl_state *this, VSRCinstance *here)
#endif #endif
if (!this) if (!this)
this = TMALLOC(struct pwl_state, 1); this = TMALLOC(struct pwl_state, 1); /* !! */
this->len = here->VSRCfunctionOrder; this->len = here->VSRCfunctionOrder;
this->arr = here->VSRCcoeffs; this->arr = here->VSRCcoeffs;

View File

@ -21,7 +21,7 @@ static void copy_coeffs(VSRCinstance *here, IFvalue *value)
if(here->VSRCcoeffs) if(here->VSRCcoeffs)
tfree(here->VSRCcoeffs); tfree(here->VSRCcoeffs);
here->VSRCcoeffs = TMALLOC(double, n); here->VSRCcoeffs = TMALLOC(double, n); /* !! */
here->VSRCfunctionOrder = n; here->VSRCfunctionOrder = n;
here->VSRCcoeffsGiven = TRUE; here->VSRCcoeffsGiven = TRUE;

View File

@ -38,7 +38,7 @@ VSRCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state)
} }
if(here->VSRCbranch == 0) { if(here->VSRCbranch == 0) {
error = CKTmkCur(ckt,&tmp,here->VSRCname,"branch"); error = CKTmkCur(ckt,&tmp,here->VSRCname,"branch"); /* !! */
if(error) return(error); if(error) return(error);
here->VSRCbranch = tmp->number; here->VSRCbranch = tmp->number;
} }