-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Hi,
There is a memory leak in the Preparator class when using UTF16String.
The problem is that using this kind type, the Preparator class is allocating an array of UTF16String::value_type, but then tries to release an array of UTF16String, and since the types don't match it causes a memory leak.
The solution is to correct the method Preparator::freeMemory() replacing
case DT_WCHAR:
deleteCachedArray<UTF16String>(it->first);
break;
by
case DT_WCHAR:
deleteCachedArray<UTF16String::value_type>(it->first);
break;
Hope this helps.
Thanks.
Reactions are currently unavailable