Fix small memory leaks in GUC checks

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: be9dac9afc25a1edaf4ad708b4efb909029b4198
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2024-12-09T19:58:23Z
Releases: 16.7
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

Files

PathChange+/−
src/backend/commands/variable.c modified +4 −0

Discussion