[Pgpool-hackers] potential memory leaks ?

Jehan-Guillaume (ioguix) de Rorthais jgdr at dalibo.com
Fri Apr 22 19:30:58 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/04/2011 21:09, Jehan-Guillaume (ioguix) de Rorthais wrote:
> 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.

Oops, a typo in the patch between "buff" and "buf" :(
See attachment.

- -- 
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/

iEYEARECAAYFAk2x13IACgkQXu9L1HbaT6Jg/gCfabdLtT+GhV7ZyLlLQlkDnVS9
JOMAoKj860vYy9uWBQ6deF6R0AGnDoK3
=KkZM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_potential_memory_leeks-2.patch.gz
Type: application/gzip
Size: 631 bytes
Desc: not available
URL: <http://pgfoundry.org/pipermail/pgpool-hackers/attachments/20110422/d08e346e/attachment.bin>


More information about the Pgpool-hackers mailing list