pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Tennant <joetennant@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Possible memory leak/memory issue in pg_dump
Date: Tue, 14 Aug 2012 17:30:25 -0400
Message-ID: <13647.1344979825@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA28GAYDEpb3Ui0qK=xsLQUaThBg2y6Qyh+rO-hKphSisub5Hg@mail.gmail.com>
References: <CAA28GAYDEpb3Ui0qK=xsLQUaThBg2y6Qyh+rO-hKphSisub5Hg@mail.gmail.com>

Joe Tennant <joetennant@gmail.com> writes:
> While browsing the code, "pg_dump.c" the following block *appears* to
> be problematic. Additionally, there *appears* to be a malloc without a
> free (return or assignment) in the function "getBlobs(Archive *AH)"
> (pg_dump.c lines 2169 thru 2188 v9.1.4).

All those data structures are supposed to survive for the life of the
pg_dump run, so this isn't a leak.

			regards, tom lane




view thread (2+ messages)

Message-ID: <13647.1344979825@sss.pgh.pa.us>
Permalink:  ../13647.1344979825@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13647.1344979825@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, joetennant@gmail.com
  Subject: Re: Possible memory leak/memory issue in pg_dump
  In-Reply-To: <13647.1344979825@sss.pgh.pa.us>
  References: <CAA28GAYDEpb3Ui0qK=xsLQUaThBg2y6Qyh+rO-hKphSisub5Hg@mail.gmail.com> <13647.1344979825@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox