@yuuang/ffi-rs-linux-arm64-musl
Advanced tools
Comparing version 1.0.79 to 1.0.80
{ | ||
"name": "@yuuang/ffi-rs-linux-arm64-musl", | ||
"version": "1.0.79", | ||
"version": "1.0.80", | ||
"os": [ | ||
@@ -5,0 +5,0 @@ "linux" |
@@ -723,9 +723,9 @@ # ffi-rs | ||
At default, `ffi-rs` will free all of memory both call parameters and return value(except functionConstructor). | ||
At default, `ffi-rs` will free call parameters memory which are allocated in Rust. | ||
In some cases, the called c function also free memory has been allocated after ffi-call will cause repeated release error. | ||
But not free the return value from c side since some c dynamic library will manage their memory automatically(when ffi-rs >= 1.0.79) | ||
For avoid this error, there are two ways to prevent `ffi-rs` free memory automatically | ||
There are two ways to prevent `ffi-rs` release memory | ||
- set `freeResultMemory: false` when call `load` method | ||
- set `freeResultMemory: false` when call `load` method, the default value is false | ||
@@ -732,0 +732,0 @@ If you set freeResultMemory to false, `ffi-rs` will not release the return result memory which was allocated in c environment |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
655574