aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-06 13:19:11 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-06 13:19:11 -0700
commit41a59d0d03cc1974914f5f718e9adc3e9f52eb20 (patch)
tree19a954027959d5da930084fe144d7dcc7db5f9ef /src/bun.js
parent9c9425bc8cbafdf1c29a2e28e90fa7ae3ec1be01 (diff)
downloadbun-41a59d0d03cc1974914f5f718e9adc3e9f52eb20.tar.gz
bun-41a59d0d03cc1974914f5f718e9adc3e9f52eb20.tar.zst
bun-41a59d0d03cc1974914f5f718e9adc3e9f52eb20.zip
Fix a memory leak
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/api/JSBundler.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bun.js/api/JSBundler.zig b/src/bun.js/api/JSBundler.zig
index d73dc80fe..7db9702a7 100644
--- a/src/bun.js/api/JSBundler.zig
+++ b/src/bun.js/api/JSBundler.zig
@@ -491,6 +491,7 @@ pub const JSBundler = struct {
this.value.deinit();
if (this.completion) |completion|
completion.deref();
+ bun.default_allocator.destroy(this);
}
const AnyTask = JSC.AnyTask.New(@This(), runOnJSThread);