From: devsaurus Date: Tue, 2 May 2017 20:42:45 +0000 (+0200) Subject: components/driver/spi_master: free dma descriptors X-Git-Tag: v2.1-rc1~127^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=530c3ca05c88811c8247200b00a0f8094533e8fc;p=esp-idf components/driver/spi_master: free dma descriptors Signed-off-by: Jeroen Domburg --- 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;