Files
ghostty/src
Jon Parise a5550a2dcb cli: fix readEntries leak and double-free
readEntries had two memory bugs on the allocation failure path, both
only reachable under OOM:

- The map itself was never freed if we ran into an allocation failure
- The unconditional `errdefer`s for the dupe'd hostname and terminfo
  values could double-free if there was a later allocation failure.

This change restructures this function so that these values are dupe'd
up-front, and then their ownership is tracked using optionals that can
be null'ed out once their ownership is transferred into the map.

Both of these cases are now covered by unit tests.
2026-05-25 11:49:01 -04:00
..
2025-10-03 07:10:43 -07:00
2026-03-15 20:58:43 -04:00
2026-05-05 09:47:06 +02:00
2026-05-01 13:34:23 +02:00
2025-10-03 18:52:26 +02:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2026-05-24 14:01:35 -07:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2024-08-16 14:35:10 -07:00
2025-07-09 15:06:24 -07:00
2022-08-18 11:42:32 -07:00
2026-03-20 10:37:42 -05:00
2026-03-19 22:01:16 -05:00