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 aa7f8fa35752ff0a639d86bf7ea39d5be60fa93f..ec9def221228573172e7d2446e13a612b93edddf --- 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 d3955e290e36735c2b747baa37759d54b26c1b27..a3a01c1aa7b7984579a909199ecdf951daf7a4b3 --- 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; }