mirror of
https://git.proxmox.com/git/proxmox-backup-qemu
synced 2025-10-04 16:07:54 +00:00
lint fix: explicitly drop Box
else this complains about a missing usage of the return value.. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
fcfd5c3c50
commit
afd4eff818
@ -1193,7 +1193,7 @@ pub extern "C" fn proxmox_import_state(buf: *const u8, buf_size: usize) {
|
||||
pub extern "C" fn proxmox_free_state_buf(buf: *mut u8) {
|
||||
if !buf.is_null() {
|
||||
unsafe {
|
||||
Box::from_raw(buf);
|
||||
drop(Box::from_raw(buf));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user