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
No known key found for this signature in database
GPG Key ID: E89B12BA84339E2D

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.
}
}