postgresql/contrib/pg_standby
Tom Lane 8485a25a8c Fix assorted infelicities in new SetWALSegSize() function.
* Failure to check for malloc failure (ok, pretty unlikely here, but
that's not an excuse).

* Leakage of open fd on read error, and of malloc'd buffer always.

* Incorrect assumption that a short read would set errno to zero.

* Failure to adhere to message style conventions (in particular,
not reporting errno where relevant; using "couldn't open" rather than
"could not open" is not really in line with project style either).

* Missing newlines on some messages.

Coverity spotted the leak problems; I noticed the rest while
fixing the leaks.
2017-09-24 12:05:06 -04:00
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00
pg_standby.c Fix assorted infelicities in new SetWALSegSize() function. 2017-09-24 12:05:06 -04:00