Re: [HACKERS] Memory leak in receivelog.c when receiving stream

2015-01-13 Thread Michael Paquier
On Tue, Jan 13, 2015 at 5:45 PM, Heikki Linnakangas wrote: > This looks like a false positive to me. PQgetCopyData() will only return a > buffer if its return value is > 0 Right. Sorry for the noise. -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make chang

Re: [HACKERS] Memory leak in receivelog.c when receiving stream

2015-01-13 Thread Heikki Linnakangas
On 01/13/2015 10:18 AM, Michael Paquier wrote: receivelog.c is leaking memory in CopyStreamReceive when receiving COPY data. The issue has been spotted by coverity. The patch attached fixes the problem, and contains as well improved comments. *** a/src/bin/pg_basebackup/receivelog.c --- b/src/bi