diff options
author | 2021-08-23 02:30:30 -0700 | |
---|---|---|
committer | 2021-08-23 02:30:30 -0700 | |
commit | afb6684782ffb35f6c750a57426c79ac762acc7b (patch) | |
tree | 0789404c9356eba255600797e7cbd5f906521a48 /src/string_mutable.zig | |
parent | 8c6700792666b1d7a128095cd5cff392df68375c (diff) | |
download | bun-afb6684782ffb35f6c750a57426c79ac762acc7b.tar.gz bun-afb6684782ffb35f6c750a57426c79ac762acc7b.tar.zst bun-afb6684782ffb35f6c750a57426c79ac762acc7b.zip |
Fix resolve bug with mixed-case node_modules
Former-commit-id: 5bdae0ee491e28b49ceed6136f04e0c1feddc808
Diffstat (limited to 'src/string_mutable.zig')
-rw-r--r-- | src/string_mutable.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string_mutable.zig b/src/string_mutable.zig index 755465b55..a6149ff44 100644 --- a/src/string_mutable.zig +++ b/src/string_mutable.zig @@ -17,6 +17,7 @@ pub const MutableString = struct { } pub fn deinit(str: *MutableString) void { + str.list.expandToCapacity(); str.list.deinit(str.allocator); } |