Fix small memory leaks in GUC checks
authorDaniel Gustafsson <[email protected]>
Mon, 9 Dec 2024 19:58:23 +0000 (20:58 +0100)
committerDaniel Gustafsson <[email protected]>
Mon, 9 Dec 2024 19:58:23 +0000 (20:58 +0100)
commit73a392d236965f14b84c0d09f011bda2cba6f8ca
tree9621980fc230b8419d355a74c1a3573c3f992bb8
parent0a27c3d0f733c132a4c5122e749a619d02937a8a
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 <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Discussion: https://postgr.es/m/bba4313fdde9db46db279f96f3b748b1@postgrespro.ru
Backpatch-through: 16
src/backend/commands/variable.c