Memory leak in receivelog.c when receiving stream

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Memory leak in receivelog.c when receiving stream
Date: 2015-01-13 08:18:42
Message-ID: CAB7nPqQVwvZzeQTp9z7SmaizZ8MXgw9bLOqK--6xa3bTx7RuGA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

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.
Regards,
--
Michael

Attachment Content-Type Size
20150113_receivelog_leak_fix.patch text/x-diff 872 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Karlsson 2015-01-13 08:21:47 Re: PATCH: Reducing lock strength of trigger and foreign key DDL
Previous Message Michael Paquier 2015-01-13 07:58:25 Memory leak in vacuumlo