Memory leak in vacuumlo

Started by Michael Paquierover 11 years ago2 messageshackers
Jump to latest
#1Michael Paquier
michael@paquier.xyz

Hi all,

Coverity has pointed out that vacuumlo.c is leaking memory when
grabbing the list of candidate table names and schemas. Attached is a
patch to fix the leak.
Regards,
--
Michael

Attachments:

20150113_vacuumlo_leak_fix.patchtext/x-diff; charset=US-ASCII; name=20150113_vacuumlo_leak_fix.patchDownload+9-0
#2Robert Haas
robertmhaas@gmail.com
In reply to: Michael Paquier (#1)
Re: Memory leak in vacuumlo

On Tue, Jan 13, 2015 at 2:58 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:

Coverity has pointed out that vacuumlo.c is leaking memory when
grabbing the list of candidate table names and schemas. Attached is a
patch to fix the leak.

It's only leaking in error cases, the first of which is quite
unlikely. But I don't see that as a reason not to fix it, so --
committed.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers