RFC: getting rid of Xalloc/Xfree/... in server

Mikhail Gusarov dottedmag at dottedmag.net
Wed May 5 13:12:33 PDT 2010


Twas brillig at 16:00:39 05.05.2010 UTC-04 when mattst88 at gmail.com did gyre and gimble:

 MT> My concern is that free(), when called on a location that has
 MT> already been free()d, has an undefined behavior [1]. I'm afraid
 MT> that the xserver actually depends on this.

Xfree was defined as "if(data) free(data)" which is exactly the same as
"free(data)" in C89, so behavior did not change here.

-- 
  http://fossarchy.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100506/65b9adb5/attachment.pgp>


More information about the xorg-devel mailing list