Resource leak in pg_dump.c caused by transforms

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Resource leak in pg_dump.c caused by transforms
Date: 2015-05-04 04:34:28
Message-ID: CAB7nPqTXL_UNdW19j8i5i5b5fPqaCF+zSxpm3RmGpXWz3N082g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
20150504_pgdump_transform_leak.patch text/x-diff 622 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-05-04 04:45:13 Transforms patch not respecting if indentation
Previous Message Andrew Dunstan 2015-05-04 03:37:42 Re: JSON data type and schema validation