From 349a151330c261f4cba23557f97ce299d0c32cf9 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Tue, 11 Oct 2022 03:29:59 +0300 Subject: [PATCH] fix memory leak --- applications/main/subghz/subghz_history.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/main/subghz/subghz_history.c b/applications/main/subghz/subghz_history.c index b4395c92e..961be06ad 100644 --- a/applications/main/subghz/subghz_history.c +++ b/applications/main/subghz/subghz_history.c @@ -857,6 +857,9 @@ bool subghz_history_tmp_write_file_split( flipper_format_file_close(flipper_format_file); flipper_format_free(flipper_format_file); furi_string_free(temp_str); + flipper_format_free(item->flipper_string); + item->flipper_string = NULL; + item->is_file = true; return result; }