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

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [PATCH] Memory leak, at src/common/exec.c
Дата
Msg-id CO2PR05MB26291FCBF168371F1124C480E3510@CO2PR05MB2629.namprd05.prod.outlook.com
обсуждение исходный текст
Ответы Re: [PATCH] Memory leak, at src/common/exec.c  (Mark Dilger <hornschnorter@gmail.com>)
RE: [PATCH] Memory leak, at src/common/exec.c  (Ranier Vilela <ranier_gyn@hotmail.com>)
Список pgsql-hackers
Hi,
On exec.c, have two memory leaks, and a possible access beyond heap bounds, the patch tries to fix them.
According to documentation at:
https://en.cppreference.com/w/c/experimental/dynamic/strdup
"The returned pointer must be passed to free to avoid a memory leak. "

regards,
Ranier Vilela
Вложения

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

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: [PATCH] Windows port add support to BCryptGenRandom
Следующее
От: Ranier Vilela
Дата:
Сообщение: RE: [PATCH] Windows port add support to BCryptGenRandom