From 2da2920c151c72750911f79619d79fb065f81dbc Mon Sep 17 00:00:00 2001 From: inter515 Date: Mon, 28 Aug 2023 19:22:07 +0800 Subject: [PATCH] =?UTF-8?q?fixed=201fd61c0=20from=20https://gitee.com/inte?= =?UTF-8?q?r515/xts=5Facts/pulls/9914=20=E4=BC=98=E5=8C=96native=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: inter515 --- .../entry/src/main/cpp/bundlendk1.cpp | 2 ++ .../actsbundlenativetest/entry/src/main/cpp/bundlendk.cpp | 2 ++ 2 files changed, 4 insertions(+) mode change 100755 => 100644 bundlemanager/bundle_standard/bundlemanager/actsbundlenativeninthapitest/entry/src/main/cpp/bundlendk1.cpp mode change 100755 => 100644 bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/bundlendk.cpp diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativeninthapitest/entry/src/main/cpp/bundlendk1.cpp b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativeninthapitest/entry/src/main/cpp/bundlendk1.cpp old mode 100755 new mode 100644 index aa7f8fa35..ec9def221 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativeninthapitest/entry/src/main/cpp/bundlendk1.cpp +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativeninthapitest/entry/src/main/cpp/bundlendk1.cpp @@ -30,6 +30,8 @@ static napi_value GetCurrentApplicationInfo(napi_env env, napi_callback_info inf napi_value fingerprint; napi_create_string_utf8(env, nativeApplicationInfo.fingerprint, NAPI_AUTO_LENGTH, &fingerprint); napi_set_named_property(env, result, "fingerprint", fingerprint); + free(nativeApplicationInfo.bundleName); + free(nativeApplicationInfo.fingerprint); return result; } diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/bundlendk.cpp b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/bundlendk.cpp old mode 100755 new mode 100644 index d3955e290..a3a01c1aa --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/bundlendk.cpp +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/bundlendk.cpp @@ -30,6 +30,8 @@ static napi_value GetCurrentApplicationInfo(napi_env env, napi_callback_info inf napi_value fingerprint; napi_create_string_utf8(env, nativeApplicationInfo.fingerprint, NAPI_AUTO_LENGTH, &fingerprint); napi_set_named_property(env, result, "fingerprint", fingerprint); + free(nativeApplicationInfo.bundleName); + free(nativeApplicationInfo.fingerprint); return result; } -- GitLab