From d034d72f7bfb0e3c09ecc8643241db40a59f088c Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Sat, 2 Dec 2023 06:49:24 +0000 Subject: [PATCH] Fix some subghz playlist memory leaks --- applications/system/subghz_playlist/playlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/system/subghz_playlist/playlist.c b/applications/system/subghz_playlist/playlist.c index 85b5109b8..518d0ed58 100644 --- a/applications/system/subghz_playlist/playlist.c +++ b/applications/system/subghz_playlist/playlist.c @@ -162,6 +162,7 @@ static int playlist_worker_process( flipper_format_get_raw_stream(fff_file), flipper_format_get_raw_stream(fff_data)); } flipper_format_file_close(fff_file); + flipper_format_free(fff_file); // (try to) send file SubGhzEnvironment* environment = subghz_environment_alloc(); @@ -219,6 +220,7 @@ static int playlist_worker_process( subghz_devices_idle(worker->radio_device); subghz_transmitter_free(transmitter); + subghz_environment_free(environment); return status; }