Fix small memory leaks in GUC checks
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 9 Dec 2024 19:58:23 +0000 (20:58 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 9 Dec 2024 19:58:23 +0000 (20:58 +0100)
commit9add1bbfa6659f45eb70f19961ce88973801b8ed
treeda1358b13102c4b45ea4e8e9ae41fcfcf61b50a9
parent556f7b7bc18d34ddec45392965c3b3038206bb62
Fix small memory leaks in GUC checks

Follow-up commit to a9d58bfe8a3a.  Backpatch down to v16 where
this was added in order to keep the code consistent for future
backpatches.

Author: Tofig Aliev <t.aliev@postgrespro.ru>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/bba4313fdde9db46db279f96f3b748b1@postgrespro.ru
Backpatch-through: 16
src/backend/commands/variable.c