Hi,
WebKit does not use malloc/free directly in favor of fastMalloc/fastFree.
The only exception to this rule is strdup() which returns a memory that must
be freed by free. Why don't we add fastStrDup which allocates a memory with
fastMalloc? The memory returned by fastStrDup can be freed by
On Jan 20, 2010, at 2:07 AM, KwangYul Seo wrote:
Hi,
WebKit does not use malloc/free directly in favor of fastMalloc/fastFree. The
only exception to this rule is strdup() which returns a memory that must be
freed by free. Why don't we add fastStrDup which allocates a memory with
20.01.2010, в 02:07, KwangYul Seo написал(а):
strdup/free pairs can be safely replaced with fastStrDup/fastFree in most
cases.
Libxml2-related code in particular could use xmlStrdup for consistency.
- WBR, Alexey Proskuryakov
___
webkit-dev
3 matches
Mail list logo