Several memory leaks for pg_rewind caused by missing PQclear calls

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Several memory leaks for pg_rewind caused by missing PQclear calls
Date: 2015-07-23 14:08:40
Message-ID: CAB7nPqSnxBNwNGa0h2zS=3zOh7MdgzbwD_79oij3qc90r3ZO8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

After a run of valgrind on pg_rewind, I found a couple of code paths
missing some PQclear calls after running a query. Attached is a patch
to fix all those leaks.
Regards,
--
Michael

Attachment Content-Type Size
20150723_pgrewind_leaks.patch text/x-diff 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gurjeet Singh 2015-07-23 14:11:22 Re: "A huge debt of gratitude" - Michael Stonebraker
Previous Message Tom Lane 2015-07-23 14:01:07 Re: TABLESAMPLE patch is really in pretty sad shape