mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Avoid undefined memory
This commit is contained in:
@@ -26,7 +26,7 @@ pub const MutableString = struct {
|
||||
pub fn deinit(str: *MutableString) void {
|
||||
if (str.list.capacity > 0) {
|
||||
str.list.expandToCapacity();
|
||||
str.list.deinit(str.allocator);
|
||||
str.list.clearAndFree(str.allocator);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user