diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-09-20 14:40:22 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-09-20 15:06:35 -0400 |
| commit | 052a8d2adb0c7899ae875c03da4edf80b2fa1a81 (patch) | |
| tree | 51fef92c717c7cc3af22446e97aed1bb1fd0bedb /rust/src/downloadprovider.rs | |
| parent | af2e0455c082239b21bceffbaa1684f795cb1452 (diff) | |
Rust API : FFI Fix, was leaking some non-null-terminated strings to the core..fix passing a nullptr to `load`
Diffstat (limited to 'rust/src/downloadprovider.rs')
| -rw-r--r-- | rust/src/downloadprovider.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/downloadprovider.rs b/rust/src/downloadprovider.rs index 441714b6..4ba07dbe 100644 --- a/rust/src/downloadprovider.rs +++ b/rust/src/downloadprovider.rs @@ -157,7 +157,7 @@ impl DownloadInstance { }; // Drop it - unsafe { Box::from_raw(callbacks) }; + unsafe { drop(Box::from_raw(callbacks)) }; if result < 0 { Err(self.get_error()) } else { |
