看板 FB_svn 關於我們 聯絡資訊
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig64D04E78E6E01D521E57E296 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 16-09-2012 01:27, Eitan Adler wrote: > On 15 September 2012 17:20, Bruce Cran <bruce@cran.org.uk> wrote: >> On 15/09/2012 21:57, Tijl Coosemans wrote: >>> >>> Freeing memory right before exiting is a waste of time. The tool shou= ldn't >>> complain about it. >=20 > Perhaps, but tools do. This has already been brought up on cfe-dev. >=20 >> "/Stop wasting time and just exit already/." - >> http://blogs.msdn.com/b/oldnewthing/archive/2012/01/05/10253268.aspx >=20 > I read this blog post when it came out. :) In this case the free is actually wrong, because the pointer can point to memory allocated by getmntinfo(3) and that manpage says an application= cannot free it. --------------enig64D04E78E6E01D521E57E296 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iF4EAREIAAYFAlBV4SYACgkQfoCS2CCgtiumFAD+LnchYDKAQbLekIn2QPiSI6cp 1fP1DNaeX+1N5Mu+jI4A/2PDG2/qlwF+499uPoZQjXQ1DfkMFO2VYUY69V1VKU+h =0FKG -----END PGP SIGNATURE----- --------------enig64D04E78E6E01D521E57E296--