Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4a0305a

Browse filesBrowse files
authored
Fixes SD begin() end() memory leak espressif#2897 (espressif#5419)
1 parent 6393dbc commit 4a0305a
Copy full SHA for 4a0305a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎libraries/SD/src/sd_diskio.cpp

Copy file name to clipboardExpand all lines: libraries/SD/src/sd_diskio.cpp
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ uint8_t sdcard_uninit(uint8_t pdrv)
703703
esp_err_t err = ESP_OK;
704704
if (card->base_path) {
705705
err = esp_vfs_fat_unregister_path(card->base_path);
706+
free(card->base_path);
706707
}
707708
free(card);
708709
return err;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.