Resource leak in pg_dump.c caused by transforms

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

Hi all,

Coverity is complaining that getTransforms in pg_dump.c leaks a
PQExpBuffer allocation.
Please find attached a patch to fix the leak.
Regards,
--
Michael

Attachments:

20150504_pgdump_transform_leak.patchtext/x-diff; charset=US-ASCII; name=20150504_pgdump_transform_leak.patchDownload+3-1
#2Magnus Hagander
magnus@hagander.net
In reply to: Michael Paquier (#1)
Re: Resource leak in pg_dump.c caused by transforms

On Mon, May 4, 2015 at 6:34 AM, Michael Paquier <michael.paquier@gmail.com>
wrote:

Hi all,

Coverity is complaining that getTransforms in pg_dump.c leaks a
PQExpBuffer allocation.
Please find attached a patch to fix the leak.

Applied, thanks.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/