aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-07-21 10:41:33 +0900
committerMichael Paquier <michael@paquier.xyz>2022-07-21 10:41:33 +0900
commit171ab95f64493f30dccf34bb1cafaa7b4957cd4e (patch)
tree05cb06267c00e07ab24003ece21eab492293244b /src/backend/utils/adt/ruleutils.c
parentaf119e08fd147e808927b1a4c9f091636d52eb45 (diff)
downloadpostgresql-171ab95f64493f30dccf34bb1cafaa7b4957cd4e.tar.gz
postgresql-171ab95f64493f30dccf34bb1cafaa7b4957cd4e.zip
Fix various memory leaks in psql's describe commands \d*
Most of these have been introduced in d2d3547 with the new pattern validation logic, and would leak memory worth an amount of one PQExpBuffer each time (as of 256 bytes at minimum, possibly more). Most of the patch has been written by Tang Haiying, with a few tweaks coming from Álvaro Herrera. Reported-by: Tang Haiying Author: Tang Haiying, Álvaro Herrera Reviewed-by: Mark Dilger, Andres Freund, Álvaro Herrera, Tom Lane, Japin Li, Michael Paquier, Junwang Zhao Backpatch-through: 15
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions