Fix use-after-free in Fetch

This commit is contained in:
Nikolay Govorov committed 2026-02-18 09:22:21 +00:00
1 parent 16aaa8201c
commit d70f436304
1 file changed
+2 -1
+2 -1
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.
}
}