!38 merge master into master

fix memory leak

Created-by: guorunzhi
Commit-by: guorunzhi
Merged-by: openharmony_ci
Description: fix memory leak

See merge request: openharmony/notification_notification_cangjie_wrapper!38
This commit is contained in:
openharmony_ci
2025-11-18 17:23:24 +08:00
@@ -47,9 +47,7 @@ protected struct CSubscribeInfo {
publisherDeviceId = LibC.mallocCString(info.publisherDeviceId)
publisherBundleName = LibC.mallocCString(info.publisherBundleName)
} catch(e: Exception) {
LibC.free(publisherPermission)
LibC.free(publisherDeviceId)
LibC.free(publisherBundleName)
free()
throw BusinessException(1500009, "Error obtaining system parameters.")
}
}