Skip to content

Commit ecc9270

Browse files
authored
Merge pull request #13 from squee72564/main
Fixed memory leak
2 parents 3fd5b58 + b19f15b commit ecc9270

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helpers/boilerplate_storage.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ void boilerplate_read_settings(void* context) {
101101
return;
102102
}
103103

104+
furi_string_free(temp_str);
105+
104106
if(file_version < BOILERPLATE_SETTINGS_FILE_VERSION) {
105107
FURI_LOG_I(TAG, "old config version, will be removed.");
106108
boilerplate_close_config_file(fff_file);
@@ -117,4 +119,4 @@ void boilerplate_read_settings(void* context) {
117119

118120
boilerplate_close_config_file(fff_file);
119121
boilerplate_close_storage();
120-
}
122+
}

0 commit comments

Comments
 (0)