diff --git a/support/platform/src/dma/dmac_core.c b/support/platform/src/dma/dmac_core.c index f620772d..d0e51490 100644 --- a/support/platform/src/dma/dmac_core.c +++ b/support/platform/src/dma/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); }