未验证 提交 4a0305a0 编写于 作者: R Rodrigo Garcia 提交者: GitHub

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册