Обсуждение: fix memory leak in libpq

Поиск
Список
Период
Сортировка

fix memory leak in libpq

От
Neil Conway
Дата:
This patch fixes a small memory leak in libpq: the 'pstatus' field of
PGconn is a linked list of malloc'ed nodes, so it should be freed on
PQfinish().

-Neil


Вложения

Re: fix memory leak in libpq

От
Tom Lane
Дата:
Neil Conway <neilc@samurai.com> writes:
> This patch fixes a small memory leak in libpq: the 'pstatus' field of
> PGconn is a linked list of malloc'ed nodes, so it should be freed on
> PQfinish().

Arghh!  Can't believe I forgot to do that.  Patch applied --- many thanks.

            regards, tom lane