mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 00:33:09 +00:00
fix memory leaks
This commit is contained in:
parent
08084d5763
commit
f2fd97d9c5
2 changed files with 3 additions and 0 deletions
|
@ -360,6 +360,8 @@ bool subbrute_worker_manual_transmit(SubBruteWorker* instance, const char* paylo
|
|||
subghz_transmitter_free(instance->transmitter);
|
||||
instance->transmitter = NULL;
|
||||
|
||||
stream_clean(stream);
|
||||
|
||||
instance->worker_manual_mode = false;
|
||||
|
||||
return true;
|
||||
|
|
|
@ -564,6 +564,7 @@ uint8_t subbrute_device_load_from_file(SubBruteDevice* instance, string_t file_p
|
|||
subghz_environment_free(instance->environment);
|
||||
subghz_receiver_free(instance->receiver);
|
||||
|
||||
instance->decoder_result = NULL;
|
||||
instance->receiver = NULL;
|
||||
instance->environment = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue