pgsql: Allocate fresh memory for post_opts/exec_path

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allocate fresh memory for post_opts/exec_path
Date: 2014-03-05 13:53:25
Message-ID: E1WLCGD-0008GP-5Z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2014-03-05 15:43:51 pgsql: pg_upgrade: improve C comment about what old/new oids match
Previous Message Stephen Frost 2014-03-05 13:30:36 Re: pgsql: Fix issues with pg_ctl