Re: Memory leak in lobj example code

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Nishad Prakash <prakashn(at)uci(dot)edu>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Memory leak in lobj example code
Date: 2001-01-20 00:04:58
Message-ID: 200101200004.TAA19584@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Kovacs Zoltan Sandor 2001-01-20 12:19:24 Re: pl/pgSQL & transaction
Previous Message Stephan Szabo 2001-01-19 17:37:02 Re: child table doesn't inherit PRIMARY KEY?