Re: Fix memory leak when output postgres_fdw's "Relations"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix memory leak when output postgres_fdw's "Relations"
Дата
Msg-id 866574.1627050754@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Fix memory leak when output postgres_fdw's "Relations"  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: Fix memory leak when output postgres_fdw's "Relations"
Список pgsql-hackers
Ranier Vilela <ranier.vf@gmail.com> writes:
> This is a minor leak, oversight in
>
https://github.com/postgres/postgres/commit/4526951d564a7eed512b4a0ac3b5893e0a115690#diff-e399f5c029192320f310a79f18c20fb18c8e916fee993237f6f82f05dad851c5

I don't think you understand how Postgres memory management works.
There's no permanent leak here, just till the end of the command;
so it's pretty doubtful that there's any need to expend cycles on
an explicit pfree.

            regards, tom lane



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

Предыдущее
От: Mikhail Matrosov
Дата:
Сообщение: Configure with thread sanitizer fails the thread test
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Have I found an interval arithmetic bug?