A few pg_locale.c fixes

Jeff Davis <pgsql@j-davis.com>

From: Jeff Davis <pgsql@j-davis.com>
To: pgsql-hackers@postgresql.org
Date: 2026-01-28T19:37:13Z
Lists: pgsql-hackers

Attachments

Attached patches.

Problems found with AI assistance. Patches by me.

Regards,
	Jeff Davis

Commits

  1. Fix memory leaks in pg_locale_icu.c.

  2. Fix theoretical memory leaks in pg_locale_libc.c.