fix memory leak in libpq
Started by Neil Conwayalmost 23 years ago2 messagespatches
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
Attachments:
libpq-mem-leak-1.patchtext/x-patch; charset=ANSI_X3.4-1968; name=libpq-mem-leak-1.patchDownload+12-0
Re: fix memory leak in libpq
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