Fix use-after-free in Fetch
This commit is contained in:
parent
16aaa8201c
commit
d70f436304
@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user