Allocate fresh memory for post_opts/exec_path

Stephen Frost <sfrost@snowman.net>

Commit: dd917bb793b27f8c7616f0e64f9a119e8d98eb24
Author: Stephen Frost <sfrost@snowman.net>
Date: 2014-03-05T13:50:12Z
Releases: 9.4.0
Allocate fresh memory for post_opts/exec_path

Instead of having read_post_opts() depend on the memory allocated for
the config file (which is now getting free'd), pg_strdup() for
post_opts and exec_path (similar to how it's being done elsewhere).

Noted by Thom Brown.

Files

PathChange+/−
src/bin/pg_ctl/pg_ctl.c modified +2 −2