summaryrefslogtreecommitdiff
path: root/ext/fetch/26_fetch.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/26_fetch.js')
-rw-r--r--ext/fetch/26_fetch.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js
index 311a197a8..f1c771dc0 100644
--- a/ext/fetch/26_fetch.js
+++ b/ext/fetch/26_fetch.js
@@ -284,6 +284,9 @@ async function mainFetch(req, recursive, terminator) {
cause: requestSendError,
});
}
+ if (requestBodyRid !== null) {
+ core.tryClose(requestBodyRid);
+ }
throw err;
} finally {
if (cancelHandleRid !== null) {