[webkit-dev] strdup in WebKit

2010-01-20 Thread KwangYul Seo
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

Re: [webkit-dev] strdup in WebKit

2010-01-20 Thread Maciej Stachowiak
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

Re: [webkit-dev] strdup in WebKit

2010-01-20 Thread Alexey Proskuryakov
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