pgsql: Fix resource leak in initdb -X option

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема pgsql: Fix resource leak in initdb -X option
Дата
Msg-id E1UyU8r-0000Wi-1o@gemulon.postgresql.org
обсуждение исходный текст
Список 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(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: pgsql: Be sure to close() file descriptor on error case
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Document the OVER keyword as being unreserved.