Re: pg_parse_json() should not leak token copies on failure

Jacob Champion <jacob.champion@enterprisedb.com>

From: Jacob Champion <jacob.champion@enterprisedb.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-hackers@postgresql.org, Michael Paquier <michael@paquier.xyz>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Date: 2024-10-31T21:10:14Z
Lists: pgsql-hackers

Attachments

On Mon, Oct 7, 2024 at 3:45 PM Jacob Champion
<jacob.champion@enterprisedb.com> wrote:
> I've added a 0002 as well.

0002 has since been applied [1] so I'm reattaching v4-0001 to get the
cfbot happy again.

--Jacob

[1] https://git.postgresql.org/cgit/postgresql.git/commit/?id=41b023946d

Commits

  1. jsonapi: add lexer option to keep token ownership