How to properly fix memory leak

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема How to properly fix memory leak
Дата
Msg-id CAKFQuwbZxuVPZTwMmxqBYUFNajCPFKrOY12co+0pFK-eTHcEuA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to properly fix memory leak  (Igor Korot <ikorot01@gmail.com>)
Ответы Re: How to properly fix memory leak
Список pgsql-general
On Friday, April 25, 2025, Igor Korot <ikorot01@gmail.com> wrote:

And the error case was handled correctly, right?

Seems like answering that requires knowing what the query is or can be.  I also have no idea what idiomatic code looks like.  Though, I’d probably use PQresultErrorMessage and check affirmatively for the tuples and error cases and have a final else should the status be something unexpected.

David J.

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