aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2019-06-07 12:44:06 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2019-06-07 12:44:06 +0300
commit99b5ff2eaf4c64c6ac8204f622075d7f01ff4cc2 (patch)
tree9bba7b3d39995a8c4152f1bf3139f8587546713b /contrib/postgres_fdw/postgres_fdw.c
parent0022aa31ecc83bd9d6eb8a6c9ffc8f5849875342 (diff)
downloadpostgresql-99b5ff2eaf4c64c6ac8204f622075d7f01ff4cc2.tar.gz
postgresql-99b5ff2eaf4c64c6ac8204f622075d7f01ff4cc2.zip
Fix copy-pasto in freeing memory on error in vacuumlo.
It's harmless to call PQfreemem() with a NULL argument, so the only consequence was that if allocating 'schema' failed, but allocating 'table' or 'field' succeeded, we would leak a bit of memory. That's highly unlikely to happen, so this is just academical, but let's get it right. Per bug #15838 from Timur Birsh. Backpatch back to 9.5, where the PQfreemem() calls were introduced. Discussion: https://www.postgresql.org/message-id/15838-3221652c72c5e69d@postgresql.org
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions