diff options
| author | Fabian Erdmann <fabian.erdmann@fabit.us> | 2026-02-02 19:41:37 +0100 |
|---|---|---|
| committer | Fabian Erdmann <fabian.erdmann@fabit.us> | 2026-02-02 19:41:37 +0100 |
| commit | 55ab089ffcb726f565bb8845392e81cc112e4a41 (patch) | |
| tree | f2c36f06ac5c7e6d6c0cb0c9e91721141e8ee98a | |
| parent | 6a07f70c1c1081374faeee2eabe53d23805ea529 (diff) | |
text/regex: Pass given allocator on in create_iterator
| -rw-r--r-- | core/text/regex/regex.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/text/regex/regex.odin b/core/text/regex/regex.odin index c22371f3f..eae95b7e5 100644 --- a/core/text/regex/regex.odin +++ b/core/text/regex/regex.odin @@ -280,9 +280,9 @@ create_iterator :: proc( ) -> (result: Match_Iterator, err: Error) { result.regex = create(pattern, flags, permanent_allocator, temporary_allocator) or_return - result.capture = preallocate_capture() + result.capture = preallocate_capture(permanent_allocator) result.temp = temporary_allocator - result.vm = virtual_machine.create(result.regex.program, str) + result.vm = virtual_machine.create(result.regex.program, str, permanent_allocator) result.vm.class_data = result.regex.class_data result.threads = max(1, virtual_machine.opcode_count(result.vm.code) - 1) |