From a47a55bfee0c0bbd5724953d89144f55544f6a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Fri, 14 Jun 2024 16:06:59 +0100 Subject: [PATCH] Archive: fix memory leak in favorites add/remove (#3712) --- applications/main/archive/helpers/archive_files.c | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/main/archive/helpers/archive_files.c b/applications/main/archive/helpers/archive_files.c index 0d32e37bf..2f4d6a02a 100644 --- a/applications/main/archive/helpers/archive_files.c +++ b/applications/main/archive/helpers/archive_files.c @@ -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);