mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
Fix memory leak in Bun.spawn (#20095)
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
This commit is contained in:
@@ -2411,7 +2411,7 @@ pub const PackCommand = struct {
|
||||
}
|
||||
|
||||
pub fn deinit(this: *const IgnorePatterns, allocator: std.mem.Allocator) void {
|
||||
for (this.list) |pattern_info| {
|
||||
for (this.list) |*pattern_info| {
|
||||
pattern_info.glob.deinit(allocator);
|
||||
}
|
||||
allocator.free(this.list);
|
||||
|
||||
Reference in New Issue
Block a user