diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-11-18 13:28:09 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-11-18 13:28:09 -0500 |
commit | 3aa3ae8e1d959681d3396fe176cd8086e3b26c55 (patch) | |
tree | 3fc56c9b065d997f67a2bda50b673ac55a8c8f23 /contrib/postgres_fdw/sql/postgres_fdw.sql | |
parent | d5bea1fbcc24a9880ddc2ede29a6fedb41de9292 (diff) | |
download | postgresql-3aa3ae8e1d959681d3396fe176cd8086e3b26c55.tar.gz postgresql-3aa3ae8e1d959681d3396fe176cd8086e3b26c55.zip |
Fix some bogus direct uses of realloc().
pg_dump/parallel.c was using realloc() directly with no error check.
While the odds of an actual failure here seem pretty low, Coverity
complains about it, so fix by using pg_realloc() instead.
While looking for other instances, I noticed a couple of places in
psql that hadn't gotten the memo about the availability of pg_realloc.
These aren't bugs, since they did have error checks, but verbosely
inconsistent code is not a good thing.
Back-patch as far as 9.3. 9.2 did not have pg_dump/parallel.c, nor
did it have pg_realloc available in all frontend code.
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions