[PATCH 00/37] Warning fixes (post 1.15 proposed changes)

Keith Packard keithp at keithp.com
Mon Nov 18 09:24:00 PST 2013


Thierry Reding <thierry.reding at gmail.com> writes:

> If you absolutely must be able to use either statically or dynamically
> allocated strings in the same data structure, why not just go and
> strdup() string constants so that you can treat the structure in the
> same way subsequently?

 1) That's not how the code works today, and these additional
    allocations will result in memory leaks unless we carefully
    review all code paths to ensure that they get freed.

 2) It's a waste of CPU and memory.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131118/f9053581/attachment.pgp>


More information about the xorg-devel mailing list