Memory leak in lobj example code

From: Nishad Prakash <prakashn(at)uci(dot)edu>
To: pgsql-docs(at)postgresql(dot)org
Subject: Memory leak in lobj example code
Date: 2000-10-16 17:46:48
Message-ID: Pine.GSO.4.21.0010161040490.14746-100000@e4e.oac.uci.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message He Weiping (Laser Henry) 2000-10-17 05:23:13 duplicated item in installation.sgml
Previous Message Peter Eisentraut 2000-10-10 15:52:01 Re: [PATCHES] Re: [ANNOUNCE] Announce: Release of PyGreSQL version 3.0