Archive: fix memory leak in favorites add/remove (#3712)

This commit is contained in:
あく 2024-06-14 16:06:59 +01:00 committed by GitHub
parent 12c1d10246
commit a47a55bfee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,7 @@ void archive_file_append(const char* path, const char* format, ...) {
storage_file_write(file, furi_string_get_cstr(string), furi_string_size(string));
}
furi_string_free(string);
storage_file_close(file);
storage_file_free(file);
furi_record_close(RECORD_STORAGE);