pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Nishad Prakash <prakashn@uci.edu>
Cc: pgsql-docs@postgresql.org
Subject: Re: Memory leak in lobj example code
Date: Fri, 19 Jan 2001 19:04:58 -0500 (EST)
Message-ID: <200101200004.TAA19584@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.21.0010161040490.14746-100000@e4e.oac.uci.edu>

Thanks.  I have fixed this.  It will appear in 7.1, and in the docs
tomorrow.


> 
> In the Programmer's Guide, the sample code for accessing large objects
> from libpq has two functions with memory leaks.
> 
> The functions pickout() and overwrite() malloc space for buf which is
> never freed.
> 
> See
> http://www.postgresql.org/users-lounge/docs/7.0/programmer/largeobjects3207.htm
> 
> This problem is also in the 6.5 docs at
> http://www.postgresql.org/users-lounge/docs/6.5/programmer/x3184.htm
> 
> 
> Nishad
> -- 
> "Underneath the concrete, the dream is still alive" -- Talking Heads
> 
> 
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (2+ messages)

Message-ID: <200101200004.TAA19584@candle.pha.pa.us>
Permalink:  ../200101200004.TAA19584@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200101200004.TAA19584@candle.pha.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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: pgman@candle.pha.pa.us, prakashn@uci.edu
  Subject: Re: Memory leak in lobj example code
  In-Reply-To: <200101200004.TAA19584@candle.pha.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