Skip to content

Commit 26cb2da

Browse files
committed
Store passed allocator
1 parent 06e5df4 commit 26cb2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub const DynMem = struct {
3939
pub fn alloc(allocator: std.mem.Allocator, size: usize) !DynMem {
4040
const mem = try allocator.alignedAlloc(u8, std.mem.page_size, size);
4141
return .{
42-
.allocator = std.testing.allocator,
42+
.allocator = allocator,
4343
.mem = mem,
4444
};
4545
}

0 commit comments

Comments
 (0)