[Pgpool-hackers] potential memory leaks ?
Jehan-Guillaume (ioguix) de Rorthais
jgdr at dalibo.com
Fri Apr 22 19:09:06 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Before studying the double free problem on pgpool_adm extension, I had a
look quickly on pcp/pcp.c and found some place where I believe there is
some memory leaks.
Basically, in some while(1) loops in few functions, we "free(buff)" only
on errors, but never when the code loop normally.
In attachment, a patch that fix the ones I found.
- --
Jehan-Guillaume (ioguix) de Rorthais
DBA
http://www.dalibo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2x0lIACgkQXu9L1HbaT6JJYQCffKZCQhpT7hDw5uHJSYhR9w59
3y4AoLdiKPA7xGmyVTHCPRA7vY5372Bt
=ebTL
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_potential_memory_leeks.patch.gz
Type: application/gzip
Size: 641 bytes
Desc: not available
URL: <http://pgfoundry.org/pipermail/pgpool-hackers/attachments/20110422/bd90aee6/attachment.bin>
More information about the Pgpool-hackers
mailing list