diff options
author | Max Kellermann <max@duempel.org> | 2014-04-09 20:09:17 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-04-09 20:09:34 +0200 |
commit | afdefefbe4b39ddcca8b9fedd37cafdc949cc3d5 (patch) | |
tree | 592ec6794e3e5bf19ff63466bd54be33fe093985 /src/lib | |
parent | 5360c0c5881df3cd3cfc559a4dd6bd7295242dac (diff) | |
download | mpd-afdefefbe4b39ddcca8b9fedd37cafdc949cc3d5.tar.gz mpd-afdefefbe4b39ddcca8b9fedd37cafdc949cc3d5.tar.xz mpd-afdefefbe4b39ddcca8b9fedd37cafdc949cc3d5.zip |
icu/Collate: fix memory leak in IcuCaseFold()
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/icu/Collate.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx index 3e8a6f5b5..c863e7e2a 100644 --- a/src/lib/icu/Collate.cxx +++ b/src/lib/icu/Collate.cxx @@ -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) |