diff --git a/support/platform/src/dmac_core.c b/support/platform/src/dmac_core.c index c5d529f0bd4317fb1b935ea7e446f85ef4626d3f..1cdccf936260ddb80fd01c6c98bb4576d612b430 100644 --- a/support/platform/src/dmac_core.c +++ b/support/platform/src/dmac_core.c @@ -229,6 +229,7 @@ static void DmacFreeChannel(struct DmaCntlr *cntlr, uint16_t channel) } OsalSpinLockIrqSave(&cntlr->lock, &flags); + DmacFreeLli(&cntlr->channelList[channel]); cntlr->channelList[channel].useStatus = DMAC_CHN_VACANCY; OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); }