Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 073546a

Browse files
Merge pull request #14 from karlseguin/remove_eager_cleanup
Don't clear the context stack in pop
2 parents 570f436 + d814544 commit 073546a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/std/http/Client.zig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,14 +2469,6 @@ pub const Ctx = struct {
24692469
if (self.stack) |stack| {
24702470
const allocator = self.alloc();
24712471
const func = stack.pop(allocator, null);
2472-
2473-
defer {
2474-
if (self.stack != null and self.stack.?.next == null) {
2475-
allocator.destroy(self.stack.?);
2476-
self.stack = null;
2477-
}
2478-
}
2479-
24802472
return @call(.auto, func, .{ self, res });
24812473
}
24822474
unreachable;

0 commit comments

Comments
 (0)