Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toolbox/saved_struct.c')
-rw-r--r--lib/toolbox/saved_struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toolbox/saved_struct.c b/lib/toolbox/saved_struct.c
index d0b65660..ef7dbcf7 100644
--- a/lib/toolbox/saved_struct.c
+++ b/lib/toolbox/saved_struct.c
@@ -67,7 +67,7 @@ bool saved_struct_load(const char* path, void* data, size_t size, uint8_t magic,
SavedStructHeader header;
- uint8_t* data_read = furi_alloc(size);
+ uint8_t* data_read = malloc(size);
Storage* storage = furi_record_open("storage");
File* file = storage_file_alloc(storage);
bool result = true;