pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Memory leak in lobj example code
2+ messages / 2 participants
[nested] [flat]

* Memory leak in lobj example code
@ 2000-10-16 17:46 Nishad Prakash <prakashn@uci.edu>
  2001-01-20 00:04 ` Re: Memory leak in lobj example code Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Nishad Prakash @ 2000-10-16 17:46 UTC (permalink / raw)
  To: pgsql-docs


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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Memory leak in lobj example code
  2000-10-16 17:46 Memory leak in lobj example code Nishad Prakash <prakashn@uci.edu>
@ 2001-01-20 00:04 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2001-01-20 00:04 UTC (permalink / raw)
  To: Nishad Prakash <prakashn@uci.edu>; +Cc: pgsql-docs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-01-20 00:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-10-16 17:46 Memory leak in lobj example code Nishad Prakash <prakashn@uci.edu>
2001-01-20 00:04 ` Bruce Momjian <pgman@candle.pha.pa.us>

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