Thread: fix memory leak in libpq

fix memory leak in libpq

From
Neil Conway
Date:
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


Attachment

Re: fix memory leak in libpq

From
Tom Lane
Date:
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