Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl<T> Builder<T> {
);
self.capacity = new_capacity;
self.data = mem::transmute::<*const u8, *mut T>(new_buffer);
libc::free(mem::transmute::<*mut T, *mut libc::c_void>(old_buffer));
free_aligned(mem::transmute::<*mut T, *const u8>(old_buffer));
}
}

Expand Down
1 change: 1 addition & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ pub mod error;
pub mod list;
pub mod list_builder;
pub mod memory;
#[cfg(not(windows))]
pub mod memory_pool;