Browse Source

add missing furi_string_free

MX 2 năm trước cách đây
mục cha
commit
9dd4b230cf
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      helpers/hex_viewer_storage.c

+ 2 - 0
helpers/hex_viewer_storage.c

@@ -93,8 +93,10 @@ void hex_viewer_read_settings(void* context) {
         FURI_LOG_E(TAG, "Missing Header Data");
         hex_viewer_close_config_file(fff_file);
         hex_viewer_close_storage();
+        furi_string_free(temp_str);
         return;
     }
+    furi_string_free(temp_str);
 
     if(file_version < HEX_VIEWER_SETTINGS_FILE_VERSION) {
         FURI_LOG_I(TAG, "old config version, will be removed.");