-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
In Optimize Vec allocations in map deserialization.
The following change was introduced for the get_map and get_map_bytes functions:
Vec::from_raw_parts(return_data, return_size, return_size);
was changed for
std::slice::from_raw_parts
Vec::from_raw_parts uses the Global allocator to properly deallocate the return data on drop. On the other hand the slice is not handling the deallocation and therfore producing a memory leak.
andytesti, Pawan-Bishnoi, ramaraochavali and PiotrSikora
Metadata
Metadata
Assignees
Labels
No labels