Add alutech table to enviroment alloc and free

This commit is contained in:
MX 2023-04-10 02:55:16 +03:00
parent c2997bb1fc
commit 4c7fa05bfe
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -16,6 +16,7 @@ SubGhzEnvironment* subghz_environment_alloc() {
instance->protocol_registry = NULL; instance->protocol_registry = NULL;
instance->came_atomo_rainbow_table_file_name = NULL; instance->came_atomo_rainbow_table_file_name = NULL;
instance->nice_flor_s_rainbow_table_file_name = NULL; instance->nice_flor_s_rainbow_table_file_name = NULL;
instance->alutech_at_4n_rainbow_table_file_name = NULL;
return instance; return instance;
} }
@ -26,6 +27,7 @@ void subghz_environment_free(SubGhzEnvironment* instance) {
instance->protocol_registry = NULL; instance->protocol_registry = NULL;
instance->came_atomo_rainbow_table_file_name = NULL; instance->came_atomo_rainbow_table_file_name = NULL;
instance->nice_flor_s_rainbow_table_file_name = NULL; instance->nice_flor_s_rainbow_table_file_name = NULL;
instance->alutech_at_4n_rainbow_table_file_name = NULL;
subghz_keystore_free(instance->keystore); subghz_keystore_free(instance->keystore);
free(instance); free(instance);