pgsql: Allocate fresh memory for post_opts/exec_path - Mailing list pgsql-committers

From Stephen Frost
Subject pgsql: Allocate fresh memory for post_opts/exec_path
Date
Msg-id E1WLCGD-0008GP-5Z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dd917bb793b27f8c7616f0e64f9a119e8d98eb24

Modified Files
--------------
src/bin/pg_ctl/pg_ctl.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: pgsql: Fix issues with pg_ctl
Next
From: Bruce Momjian
Date:
Subject: pgsql: pg_upgrade: improve C comment about what old/new oids match