fix memory leak in libpq
fix memory leak in libpq
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 <tgl@sss.pgh.pa.us>
Дата:
Neil Conway 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