We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7075202 commit 9277a8eCopy full SHA for 9277a8e
src/http/async/std/http/Client.zig
@@ -2451,8 +2451,8 @@ pub const Ctx = struct {
2451
const func = stack.pop(allocator, null);
2452
2453
defer {
2454
- if (stack.next == null) {
2455
- allocator.destroy(stack);
+ if (self.stack != null and self.stack.?.next == null) {
+ allocator.destroy(self.stack.?);
2456
self.stack = null;
2457
}
2458
0 commit comments