Unverified Commit 4a0305a0 authored by Rodrigo Garcia's avatar Rodrigo Garcia Committed by GitHub

Fixes SD begin() end() memory leak #2897 (#5419)

parent 6393dbc9
......@@ -703,6 +703,7 @@ uint8_t sdcard_uninit(uint8_t pdrv)
esp_err_t err = ESP_OK;
if (card->base_path) {
err = esp_vfs_fat_unregister_path(card->base_path);
free(card->base_path);
}
free(card);
return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment