From 3e3538b9bc52bbf9337e5adc3f640cb602807b26 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Wed, 10 May 2023 23:07:06 +0300 Subject: [PATCH] Always free --- applications/main/subghz/subghz.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/applications/main/subghz/subghz.c b/applications/main/subghz/subghz.c index 975ec540a..4f4393efb 100644 --- a/applications/main/subghz/subghz.c +++ b/applications/main/subghz/subghz.c @@ -355,9 +355,7 @@ void subghz_free(SubGhz* subghz, bool alloc_for_tx_only) { furi_record_close(RECORD_GUI); subghz->gui = NULL; - if(!alloc_for_tx_only) { - subghz_last_settings_free(subghz->last_settings); //TODO always allocated - } + subghz_last_settings_free(subghz->last_settings); // threshold rssi subghz_threshold_rssi_free(subghz->threshold_rssi);