Socket
Socket
Sign inDemoInstall

@yuuang/ffi-rs-linux-arm64-musl

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yuuang/ffi-rs-linux-arm64-musl - npm Package Compare versions

Comparing version 1.0.79 to 1.0.80

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc