Memory leak in lobj example code - Mailing list pgsql-docs

From Nishad Prakash
Subject Memory leak in lobj example code
Date
Msg-id Pine.GSO.4.21.0010161040490.14746-100000@e4e.oac.uci.edu
Whole thread Raw
Responses Re: Memory leak in lobj example code
List 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



pgsql-docs by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Query from sindhu
Next
From: "He Weiping (Laser Henry)"
Date:
Subject: duplicated item in installation.sgml