From 530c3ca05c88811c8247200b00a0f8094533e8fc Mon Sep 17 00:00:00 2001 From: devsaurus Date: Tue, 2 May 2017 22:42:45 +0200 Subject: [PATCH] components/driver/spi_master: free dma descriptors Signed-off-by: Jeroen Domburg --- components/driver/spi_master.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/driver/spi_master.c b/components/driver/spi_master.c index 5bf3955d06..8fa51048e7 100644 --- a/components/driver/spi_master.c +++ b/components/driver/spi_master.c @@ -177,6 +177,8 @@ esp_err_t spi_bus_free(spi_host_device_t host) spihost[host]->hw->slave.trans_done=0; esp_intr_free(spihost[host]->intr); spicommon_periph_free(host); + free(spihost[host]->dmadesc_tx); + free(spihost[host]->dmadesc_rx); free(spihost[host]); spihost[host]=NULL; return ESP_OK; -- 2.40.0