Skip to content

Commit 9277a8e

Browse files
committed
async: fix crash w/ release build
1 parent 7075202 commit 9277a8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http/async/std/http/Client.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,8 +2451,8 @@ pub const Ctx = struct {
24512451
const func = stack.pop(allocator, null);
24522452

24532453
defer {
2454-
if (stack.next == null) {
2455-
allocator.destroy(stack);
2454+
if (self.stack != null and self.stack.?.next == null) {
2455+
allocator.destroy(self.stack.?);
24562456
self.stack = null;
24572457
}
24582458
}

0 commit comments

Comments
 (0)