Allocate fresh memory for post_opts/exec_path
authorStephen Frost <sfrost@snowman.net>
Wed, 5 Mar 2014 13:50:12 +0000 (08:50 -0500)
committerStephen Frost <sfrost@snowman.net>
Wed, 5 Mar 2014 13:50:12 +0000 (08:50 -0500)
commitdd917bb793b27f8c7616f0e64f9a119e8d98eb24
tree9920705d48bc8f72c867c2a0d1ecb3019f343932
parent956685f82b6983ff17e6a39bd386b11f554715a8
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.
src/bin/pg_ctl/pg_ctl.c