From 55ab089ffcb726f565bb8845392e81cc112e4a41 Mon Sep 17 00:00:00 2001 From: Fabian Erdmann Date: Mon, 2 Feb 2026 19:41:37 +0100 Subject: [PATCH] text/regex: Pass given allocator on in create_iterator --- core/text/regex/regex.odin | 4 ++-- 1 file 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)