ICU-22532 Resolve new / free() mismatch.

This commit is contained in:
Fredrik Roubert 2024-04-08 21:24:56 +02:00 committed by Fredrik Roubert
parent 4f0c2ca71c
commit bae39adf67

View file

@ -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;
}
}