Skip to content

Commit

Permalink
call cancel instead of done
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Apr 15, 2024
1 parent c43264b commit dc8b71c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bun.js/webcore/body.zig
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ pub const Body = struct {
bun.default_allocator,
);
}
readable.done(global);
readable.abort(global);
locked.readable.deinit();
}
// will be unprotected by body value deinit
Expand Down
6 changes: 4 additions & 2 deletions test/js/bun/http/body-leak-test-fixture.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc8b71c

Please sign in to comment.