Avoid undefined memory

This commit is contained in:
Jarred Sumner
2022-09-17 17:41:13 -07:00
parent 0dea2d8515
commit e03204dccf

View File

@@ -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);
}
}