summaryrefslogtreecommitdiff
path: root/ext/fetch/26_fetch.js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-08-16 14:02:15 +0200
committerGitHub <noreply@github.com>2023-08-16 14:02:15 +0200
commit1b0e394d48324b5e8416f9a563eb2f35719f0906 (patch)
treee1f0533c04714ff9efe1da0f276264cd1c71403f /ext/fetch/26_fetch.js
parent838140fb82e696fb131f5c62c51c7b6dea56f3ad (diff)
fix: release ReadeableStream in fetch (#17365)
Fixes #16648 --------- Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
Diffstat (limited to 'ext/fetch/26_fetch.js')
-rw-r--r--ext/fetch/26_fetch.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js
index 6be63d077..311a197a8 100644
--- a/ext/fetch/26_fetch.js
+++ b/ext/fetch/26_fetch.js
@@ -268,6 +268,7 @@ async function mainFetch(req, recursive, terminator) {
}
}
WeakMapPrototypeDelete(requestBodyReaders, req);
+ reader.releaseLock();
core.tryClose(requestBodyRid);
})();
}