In the Programmer's Guide, the sample code for accessing large objects

Bruce Momjian <bruce@momjian.us>

Commit: d12885235818da5575e6e2dd47fa5657642be418
Author: Bruce Momjian <bruce@momjian.us>
Date: 2001-01-20T00:05:54Z
Releases: 7.1.1
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 Prakash

Files

PathChange+/−
doc/src/sgml/lobj.sgml modified +118 −97