diff --git a/icu-fix-memory-leak.patch b/icu-fix-memory-leak.patch new file mode 100644 index 0000000..7b00db3 --- /dev/null +++ b/icu-fix-memory-leak.patch @@ -0,0 +1,26 @@ +From 35a6cf2313357f9b58e60a000ea3f1d22e21dd65 Mon Sep 17 00:00:00 2001 +From: songnannan2 +Date: Tue, 18 Feb 2020 23:42:45 +0800 +Subject: [PATCH] b + +--- + icu/source/common/uloc_tag.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/icu/source/common/uloc_tag.cpp b/icu/source/common/uloc_tag.cpp +index 87b9f63..6948e14 100644 +--- a/source/common/uloc_tag.cpp ++++ b/source/common/uloc_tag.cpp +@@ -1242,7 +1242,8 @@ _appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendT + attrBufIdx += (len + 1); + } else { + *status = U_ILLEGAL_ARGUMENT_ERROR; +- goto cleanup; ++ uprv_free(attr); ++ goto cleanup; + } + + if (!_addAttributeToList(&attrFirst, attr)) { +-- +2.19.1 + diff --git a/icu.spec b/icu.spec index 0d77e46..29767a8 100644 --- a/icu.spec +++ b/icu.spec @@ -1,6 +1,6 @@ Name: icu Version: 62.1 -Release: 2 +Release: 3 Summary: International Components for Unicode License: MIT and UCD and Public Domain URL: http://site.icu-project.org/ @@ -13,6 +13,8 @@ Requires: lib%{name} = %{version}-%{release} Patch1: gennorm2-man.patch Patch2: icuinfo-man.patch +Patch6000: icu-fix-memory-leak.patch + %description Tools and utilities for developing with icu. @@ -126,6 +128,9 @@ LD_LIBRARY_PATH=lib:stubdata:tools/ctestfw:$LD_LIBRARY_PATH bin/uconv -l %changelog +* Tue Mar 10 2020 songnannan - 62.1-4 +- bugfix memory leak + * Sat Jan 11 2020 openEuler Buildteam - 62.1-3 - Type:bugfix - Id:NA