Ver código fonte

Fix memory leak. Ref https://github.com/leedave/flipper-zero-fap-boilerplate/commit/b19f15bcec18723d493575de873f1c5369d6fcc0

Cody Tolene 2 anos atrás
pai
commit
270d59ed7c
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      helpers/camera_suite_storage.c

+ 2 - 0
helpers/camera_suite_storage.c

@@ -96,6 +96,8 @@ void camera_suite_read_settings(void* context) {
         return;
         return;
     }
     }
 
 
+    furi_string_free(temp_str);
+
     if(file_version < BOILERPLATE_SETTINGS_FILE_VERSION) {
     if(file_version < BOILERPLATE_SETTINGS_FILE_VERSION) {
         FURI_LOG_I(TAG, "old config version, will be removed.");
         FURI_LOG_I(TAG, "old config version, will be removed.");
         camera_suite_close_config_file(fff_file);
         camera_suite_close_config_file(fff_file);