RE: [PATCH] Memory leak, at src/common/exec.c

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема RE: [PATCH] Memory leak, at src/common/exec.c
Дата
Msg-id SN2PR05MB264066382E2CC75E734492C8E3510@SN2PR05MB2640.namprd05.prod.outlook.com
обсуждение исходный текст
Ответ на [PATCH] Memory leak, at src/common/exec.c  (Ranier Vilela <ranier_gyn@hotmail.com>)
Ответы Re: [PATCH] Memory leak, at src/common/exec.c  (Tom Lane <tgl@sss.pgh.pa.us>)
RE: [PATCH] Memory leak, at src/common/exec.c  (Ranier Vilela <ranier_gyn@hotmail.com>)
Список pgsql-hackers
According to the documentation at:

https://wiki.sei.cmu.edu/confluence/display/c/POS34-C.+Do+not+call+putenv%28%29+with+a+pointer+to+an+automatic+variable+as+the+argument
"Using setenv() is easier and consequently less error prone than using putenv()."
putenv is problematic and error prone, better replace by setenv.

As a result, set_pglocale_pgservice, is much simpler and more readable.

regards,
Ranier Vilela

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Memory leak, at src/common/exec.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Memory leak, at src/common/exec.c