diff --git a/src/spicelib/devices/bsim4/b4temp.c b/src/spicelib/devices/bsim4/b4temp.c index 5e94129af..cd5b13dd9 100644 --- a/src/spicelib/devices/bsim4/b4temp.c +++ b/src/spicelib/devices/bsim4/b4temp.c @@ -430,8 +430,7 @@ int Size_Not_Found, i; Wdrn = here->BSIM4w / here->BSIM4nf; if (Size_Not_Found) - { pParam = (struct bsim4SizeDependParam *)malloc( - sizeof(struct bsim4SizeDependParam)); + { pParam = TMALLOC(struct bsim4SizeDependParam, 1); if (pLastKnot == NULL) model->pSizeDependParamKnot = pParam; else