Re: [HACKERS] Several memory leaks for pg_rewind caused by missing PQclear calls

2015-07-27 Thread Heikki Linnakangas
On 07/23/2015 05:08 PM, Michael Paquier wrote: 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. Fixed, thanks. - Heikki -- Sent via pgsql-hackers mailing list

Re: [HACKERS] Several memory leaks for pg_rewind caused by missing PQclear calls

2015-07-27 Thread Michael Paquier
On Tue, Jul 28, 2015 at 2:45 AM, Heikki Linnakangas hlinn...@iki.fi wrote: On 07/23/2015 05:08 PM, Michael Paquier wrote: 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

[HACKERS] Several memory leaks for pg_rewind caused by missing PQclear calls

2015-07-23 Thread Michael Paquier
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 diff --git a/src/bin/pg_rewind/libpq_fetch.c b/src/bin/pg_rewind/libpq_fetch.c index 1979fbc..c670fe2