Fix use-after-free in Fetch

This commit is contained in:
Nikolay Govorov
2026-02-17 11:39:09 +00:00
parent 16aaa8201c
commit d70f436304

View File

@@ -205,7 +205,8 @@ fn httpShutdownCallback(ctx: *anyopaque) void {
var response = self._response;
response._transfer = null;
response.deinit(true);
self._owns_response = false;
// Do not access `self` after this point: the Fetch struct was
// allocated from response._arena which has been released.
}
}