补交 396/5
authorCaisking <3449750381@qq.com>
Fri, 28 Jun 2024 05:12:05 +0000 (13:12 +0800)
committerCaisking <3449750381@qq.com>
Fri, 28 Jun 2024 05:12:05 +0000 (13:12 +0800)
code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.cpp

index 88e3c23..2aef7b8 100644 (file)
@@ -146,6 +146,9 @@ namespace OHOS
             oxygen_root = root;
         }
 
+        // 释放 cJSON 对象内存
+        cJSON_Delete(root);
+        // 关闭文件
         inFile.close();
         return true;
     }