]> granicus.if.org Git - postgresql/commit
Fix resource leak in initdb -X option
authorStephen Frost <sfrost@snowman.net>
Sun, 14 Jul 2013 21:44:29 +0000 (17:44 -0400)
committerStephen Frost <sfrost@snowman.net>
Sun, 14 Jul 2013 21:44:29 +0000 (17:44 -0400)
commit5461d36b5b7d99e237b2f63a7975e6430727cb0b
tree95658bf90ee85b5ebaeb9dc9fcd50d2390e54ae3
parentcec62efd0e551a56635b47ea4185ec27a6840de7
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.
src/bin/initdb/initdb.c