[MASSMAIL] Fix some resources leaks (src/bin/pg_basebackup/pg_createsubscriber.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [MASSMAIL] Fix some resources leaks (src/bin/pg_basebackup/pg_createsubscriber.c)
Дата
Msg-id CAEudQAr2_SZFxB4kXJiL4+2UaNZxUk5UBJtj0oXyJYMGZu-03g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix some resources leaks (src/bin/pg_basebackup/pg_createsubscriber.c)
Список pgsql-hackers
Hi,

Per Coverity.

Coverity has some reports in the new code
pg_createsubscriber.c
I think that Coverity is right.

1.
CID 1542682: (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable buf going out of scope leaks the storage it points to.

2.
CID 1542704: (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable conn going out of scope leaks the storage it points to.

3.
CID 1542691: (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable str going out of scope leaks the storage it points to.

Patch attached.

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

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

Предыдущее
От: Jelte Fennema-Nio
Дата:
Сообщение: Re: Possibility to disable `ALTER SYSTEM`
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Possibility to disable `ALTER SYSTEM`