Commit afdefefb authored by Max Kellermann's avatar Max Kellermann

icu/Collate: fix memory leak in IcuCaseFold()

parent 5360c0c5
......@@ -156,6 +156,7 @@ IcuCaseFold(const char *src)
uint8_t *dest = new uint8_t[dest_length];
ucol_getSortKey(collator, u, u_length,
dest, dest_length);
delete[] u;
std::string result((const char *)dest);
delete[] dest;
#elif defined(HAVE_GLIB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment