diff --git a/src/spicelib/devices/isrc/isrcdest.c b/src/spicelib/devices/isrc/isrcdest.c index 1f4b9c17b..849da4695 100644 --- a/src/spicelib/devices/isrc/isrcdest.c +++ b/src/spicelib/devices/isrc/isrcdest.c @@ -24,6 +24,8 @@ ISRCdestroy(GENmodel **inModel) oldmod = mod; prev = NULL; for(here = mod->ISRCinstances ; here ; here = here->ISRCnextInstance) { + tfree(here->ISRCcoeffs); + tfree(here->ISRC_state); if(prev) FREE(prev); prev = here; } diff --git a/src/spicelib/devices/vsrc/vsrcdest.c b/src/spicelib/devices/vsrc/vsrcdest.c index 0d2054b47..0f469a141 100644 --- a/src/spicelib/devices/vsrc/vsrcdest.c +++ b/src/spicelib/devices/vsrc/vsrcdest.c @@ -24,6 +24,8 @@ VSRCdestroy(GENmodel **inModel) oldmod = mod; prev = NULL; for(here = mod->VSRCinstances ; here ; here = here->VSRCnextInstance) { + tfree(here->VSRCcoeffs); + tfree(here->VSRC_state); if(prev) FREE(prev); prev = here; }