Update contrib/trgm_regexp's memory management.
authorThomas Munro <tmunro@postgresql.org>
Sat, 8 Apr 2023 09:55:28 +0000 (21:55 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sat, 8 Apr 2023 10:09:17 +0000 (22:09 +1200)
commit6db75edb2ecbc9f6912f90b671b01ab4ac3a01b0
tree3131464af8d79aa5d4679c9c4ebb18cf2c5fce6c
parent4f51429dd7f194e36af32b557ecdce555b5ab51b
Update contrib/trgm_regexp's memory management.

While no code change was necessary for this code to keep working, we
don't need to use PG_TRY()/PG_FINALLY() with explicit clean-up while
working with regexes anymore.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CA%2BhUKGK3PGKwcKqzoosamn36YW-fsuTdOPPF1i_rtEO%3DnEYKSg%40mail.gmail.com
contrib/pg_trgm/trgm_regexp.c