Skip to content

Commit

Permalink
fix(color): File handle leak in theme manager (#2911)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Dec 20, 2022
1 parent af040c9 commit 866716b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radio/src/gui/colorlcd/theme_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ void ThemePersistance::scanThemeFolder(char *fullPath)
FRESULT result = f_open(&file, fullPath, FA_OPEN_EXISTING | FA_READ);
if (result != FR_OK) return;

f_close(&file);
TRACE("scanForThemes: found file %s", fullPath);
themes.emplace_back(new ThemeFile(fullPath));
}
Expand Down

0 comments on commit 866716b

Please sign in to comment.