From 88e71a680ea3a50cbc9eabab6981baa86ef69ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Th=C3=A9rond?= Date: Tue, 25 Jul 2017 14:14:23 +0200 Subject: [PATCH] vfs: fix double free. --- components/fatfs/src/vfs_fat_spiflash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/fatfs/src/vfs_fat_spiflash.c b/components/fatfs/src/vfs_fat_spiflash.c index 03682e564..b9f80354a 100644 --- a/components/fatfs/src/vfs_fat_spiflash.c +++ b/components/fatfs/src/vfs_fat_spiflash.c @@ -83,6 +83,7 @@ esp_err_t esp_vfs_fat_spiflash_mount(const char* base_path, goto fail; } free(workbuf); + workbuf = NULL; ESP_LOGI(TAG, "Mounting again"); fresult = f_mount(fs, drv, 0); if (fresult != FR_OK) {