Skip to content

Commit

Permalink
fix small leak in node:process.execArgv getter (#14154)
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro authored Sep 27, 2024
1 parent 4e51f7d commit 69d33bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bun.js/node/types.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,7 @@ pub const Process = struct {

var args = std.ArrayList(bun.String).initCapacity(temp_alloc, bun.argv.len - 1) catch bun.outOfMemory();
defer args.deinit();
defer for (args.items) |*arg| arg.deref();

var seen_run = false;
var prev: ?[]const u8 = null;
Expand Down

0 comments on commit 69d33bb

Please sign in to comment.