http://bugzilla.spamassassin.org/show_bug.cgi?id=4028





------- Additional Comments From [EMAIL PROTECTED]  2005-01-04 12:14 -------
Subject: Re:  memleak in libspamc.c 

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


> > Sidney, in use_msg_for_out it would be safer to check that outbuf isn't null
> > before freeing it.  Free isn't delete, free will crash on a null pointer
> > free.
> 
> POSIX says otherwise: free(NULL) is explicitly permitted.

yes, but we need to support non-POSIX platforms.  checking for NULL is
a good plan.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFB2vkPMJF5cimLx9ARAr0GAJwPpEI6ZpwSmJhvLjI6JD7T2hBDegCgqkDG
4d8NsjCJ8gp2eS9pga24WzQ=
=m8rK
-----END PGP SIGNATURE-----





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to