Skip to content

Commit 82a7143

Browse files
committed
[Rust] Don't leak the callbacks within DownloadInstance::perform_custom_request
1 parent cce878f commit 82a7143

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/src/download_provider.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ impl DownloadInstance {
253253
)
254254
};
255255

256+
unsafe { drop(Box::from_raw(callbacks)) };
256257
if result < 0 {
257258
unsafe { BNFreeDownloadInstanceResponse(response) };
258259
return Err(self.get_error());

0 commit comments

Comments
 (0)