Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-docs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group