]> granicus.if.org Git - icu/commitdiff
ICU-13749 Prevent double-free of mzMappings in ZoneMeta::createMetazoneMappings.
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 2 May 2018 20:40:07 +0000 (20:40 +0000)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 2 May 2018 20:40:07 +0000 (20:40 +0000)
X-SVN-Rev: 41310

icu4c/source/i18n/zonemeta.cpp

index c386b0cae5e2ca9dcd850841c5ab1dd8e25b7c5b..9adbe6d8a30c1b81881c4ef9112c0175e77ce701 100644 (file)
@@ -690,6 +690,7 @@ ZoneMeta::createMetazoneMappings(const UnicodeString &tzid) {
                     mzMappings = new UVector(deleteOlsonToMetaMappingEntry, NULL, status);
                     if (U_FAILURE(status)) {
                         delete mzMappings;
+                                               mzMappings = NULL;
                         uprv_free(entry);
                         break;
                     }