diff options
| author | 2023-03-19 19:06:52 -0700 | |
|---|---|---|
| committer | 2023-03-19 19:06:52 -0700 | |
| commit | b053dffca75848647286088e519e1e5a174e9d2e (patch) | |
| tree | c1ba76313b3d01b7724f540cab19f5574ab10b6a | |
| parent | cb1b88174666aaef9e7fc6cadbd77f34ce331c04 (diff) | |
| download | bun-b053dffca75848647286088e519e1e5a174e9d2e.tar.gz bun-b053dffca75848647286088e519e1e5a174e9d2e.tar.zst bun-b053dffca75848647286088e519e1e5a174e9d2e.zip | |
Prevent undefined memory access
| -rw-r--r-- | src/bun.js/test/jest.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/test/jest.zig b/src/bun.js/test/jest.zig index 85bdb459e..7aebf7e66 100644 --- a/src/bun.js/test/jest.zig +++ b/src/bun.js/test/jest.zig @@ -3469,7 +3469,7 @@ pub const DescribeScope = struct { } this.pending_tests.deinit(getAllocator(globalThis)); - this.tests.deinit(getAllocator(globalThis)); + this.tests.clearAndFree(getAllocator(globalThis)); } const ScopeStack = ObjectPool(std.ArrayListUnmanaged(*DescribeScope), null, true, 16); |
