diff --git a/src/spicelib/devices/vsrc/vsrcload.c b/src/spicelib/devices/vsrc/vsrcload.c index 86b57aa02..b9c7dde40 100644 --- a/src/spicelib/devices/vsrc/vsrcload.c +++ b/src/spicelib/devices/vsrc/vsrcload.c @@ -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; diff --git a/src/spicelib/devices/vsrc/vsrcpar.c b/src/spicelib/devices/vsrc/vsrcpar.c index c4db5fc05..44caa97d1 100644 --- a/src/spicelib/devices/vsrc/vsrcpar.c +++ b/src/spicelib/devices/vsrc/vsrcpar.c @@ -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; diff --git a/src/spicelib/devices/vsrc/vsrcset.c b/src/spicelib/devices/vsrc/vsrcset.c index a77836f63..374421f4c 100644 --- a/src/spicelib/devices/vsrc/vsrcset.c +++ b/src/spicelib/devices/vsrc/vsrcset.c @@ -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; }