mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
Fix use-after-free in Fetch
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user