Re: [HACKERS] Resource leak in pg_dump.c caused by transforms

2015-05-07 Thread Magnus Hagander
On Mon, May 4, 2015 at 6:34 AM, Michael Paquier michael.paqu...@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:

[HACKERS] Resource leak in pg_dump.c caused by transforms

2015-05-03 Thread Michael Paquier
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 diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 977b72e..dccb472 100644 --- a/src/bin/pg_dump/pg_dump.c +++