diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-06-15 00:01:33 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-06-15 00:01:33 -0400 |
| commit | 42a5a2cf17e4547ff6bce445ef82404486e3b714 (patch) | |
| tree | 24f27f0353ba8155eb84cd5d35ae36da91c891f3 /core/flags | |
| parent | c3acdeb310c1426d009004956c1b3e59e4920808 (diff) | |
Fix memory leak in `core:flags` validation
Diffstat (limited to 'core/flags')
| -rw-r--r-- | core/flags/internal_validation.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/flags/internal_validation.odin b/core/flags/internal_validation.odin index cfa1794cd..9f94621d2 100644 --- a/core/flags/internal_validation.odin +++ b/core/flags/internal_validation.odin @@ -14,6 +14,7 @@ import "core:strings" @(optimization_mode="size", disabled=ODIN_DISABLE_ASSERT) validate_structure :: proc(model_type: $T, style: Parsing_Style, loc := #caller_location) { positionals_assigned_so_far: bit_array.Bit_Array + defer bit_array.destroy(&positionals_assigned_so_far) check_fields: for field in reflect.struct_fields_zipped(T) { if style == .Unix { |