From bae39adf672ccecfc84d296ad81c2ade5c327fb9 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Mon, 8 Apr 2024 21:24:56 +0200 Subject: [PATCH] ICU-22532 Resolve new / free() mismatch. --- icu4c/source/common/uloc_tag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/common/uloc_tag.cpp b/icu4c/source/common/uloc_tag.cpp index 278474fc9ee..f5ab0c36a62 100644 --- a/icu4c/source/common/uloc_tag.cpp +++ b/icu4c/source/common/uloc_tag.cpp @@ -2406,7 +2406,7 @@ ultag_close(ULanguageTag* langtag) { ExtensionListEntry *curExt = langtag->extensions; while (curExt) { ExtensionListEntry *nextExt = curExt->next; - uprv_free(curExt); + delete curExt; curExt = nextExt; } }