Fix issues with pg_ctl

Stephen Frost <sfrost@snowman.net>

Commit: eb933162cdcbcaa5c56c75eb21b9c055af9748a0
Author: Stephen Frost <sfrost@snowman.net>
Date: 2014-03-05T06:30:03Z
Releases: 9.4.0
Fix issues with pg_ctl

The new, small, free_readfile managed to have bug in it which could
cause it to try and free something it shouldn't, and fix the case
where it was being called with an invalid pointer leading to a
segfault.

Noted by Bruce, issues introduced and fixed by me.

Files

PathChange+/−
src/bin/pg_ctl/pg_ctl.c modified +7 −5