0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/tools
andrew.kraevskii bbab366b78 Audit usages of toOwnedSlice (#32001)
Followup to #30769

I grepped for `try .*toOwnedSlice` and checked all of them by hand.

Fixes a bunch of memory leaks removes usages or `errdefer` and `vars` in some places. I also switched array_list.Managed to ArrayList where it was convenient.

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/32001
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
History 2026-04-22 19:35:46 +02:00
..
crc std.hash.crc: simplify api 2024-04-28 21:12:01 +12:00
spirv spirv: snake-case the spec 2025-07-14 15:16:17 +02:00
docgen.zig Audit usages of toOwnedSlice (#32001) 2026-04-22 19:35:46 +02:00
doctest.zig delete @cImport from the language 2026-04-15 17:43:53 -07:00
dump-cov.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
fetch_them_macos_headers.zig test-standalone: update the rest of the cases to new API 2026-01-04 00:27:08 -08:00
gen_macos_headers_c.zig test-standalone: update the rest of the cases to new API 2026-01-04 00:27:08 -08:00
gen_outline_atomics.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
gen_spirv_spec.zig std: remove managed array hash map variants 2026-04-10 17:39:45 +02:00
gen_stubs.zig std: remove managed array hash map variants 2026-04-10 17:39:45 +02:00
generate_c_size_and_align_checks.zig std: remove GeneralPurposeAllocator alias 2026-03-11 01:55:49 +01:00
generate_JSONTestSuite.zig update tests and tools to new main API 2026-01-04 00:27:08 -08:00
generate_linux_syscalls.zig generate_linux_syscalls: add loongarch32 2026-02-09 23:54:30 +01:00
incr-check.zig tests: move incremental target matrix out of manifests 2026-04-15 00:06:18 +02:00
lldb_pretty_printers.py all: replace all @Type usages 2025-11-22 22:42:38 +00:00
macos-headers.c libc: Add mach-o/getsect.h and mach/exception.h macOS headers 2025-11-04 21:51:48 +00:00
migrate_langref.zig delete @cImport from the language 2026-04-15 17:43:53 -07:00
process_headers.zig std: remove managed array hash map variants 2026-04-10 17:39:45 +02:00
stage1_gdb_pretty_printers.py gdb: restructure pretty printers into different files 2022-03-16 18:13:10 +01:00
stage2_gdb_pretty_printers.py InternPool: port most of value tags 2023-06-10 20:47:54 -07:00
std_gdb_pretty_printers.py tools: fix outdated filename in std_gdb_pretty_printers.py comment 2026-04-11 17:27:02 +03:00
update-linux-headers.zig std: remove managed array hash map variants 2026-04-10 17:39:45 +02:00
update_clang_options.zig process.Child: use std.posix.SIG instead of u32 for Child.Term stopped field 2026-04-07 10:27:21 +02:00
update_cpu_features.zig process.Child: use std.posix.SIG instead of u32 for Child.Term stopped field 2026-04-07 10:27:21 +02:00
update_crc_catalog.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_freebsd_libc.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_glibc.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_mingw.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_netbsd_libc.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_openbsd_libc.zig update_openbsd_libc: add tool for updating openbsd libc startup code 2026-01-05 16:50:44 +01:00
zig_gdb_pretty_printers.py Update GDB pretty printers 2023-03-30 12:15:53 +03:00