Status: Accepted Owner: ---- Labels: Type-Bug Priority-Medium New issue 159 by [EMAIL PROTECTED]: Two "redundant" StrDup functions in V8 http://code.google.com/p/v8/issues/detail?id=159
The function v8::internal::OS::StrDup forwards to the C library strdup, while v8::internal::StrDup in allocation.h uses NewArray. This can get confusing because you need to call free on the results from OS::StrDup while you need to call DeleteArray (which calls delete) on the StrDup from allocation.h. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
