pgsql: Fix resource leak in initdb -X option

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix resource leak in initdb -X option
Date: 2013-07-14 21:47:41
Message-ID: E1UyU8r-0000Wi-1o@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix resource leak in initdb -X option

When creating the symlink for the xlog directory, free the string
which stores the link location. Not really an issue but it doesn't
hurt to be good about this- prior cleanups have fixed similar
issues.

Leak found by the Coverity scanner.

Not back-patching as I don't see it being worth the code churn.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5461d36b5b7d99e237b2f63a7975e6430727cb0b

Modified Files
--------------
src/bin/initdb/initdb.c | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2013-07-14 23:49:38 pgsql: Document the OVER keyword as being unreserved.
Previous Message Stephen Frost 2013-07-14 21:31:16 pgsql: Be sure to close() file descriptor on error case