From 9b68c719ad7319fab7731569fbbb7b6c438d43ac Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Thu, 10 Jun 2010 17:53:26 +0000 Subject: [PATCH] ICU-7216 Fix possible memory leak in error case. X-SVN-Rev: 28168 --- icu4c/source/i18n/unum.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/icu4c/source/i18n/unum.cpp b/icu4c/source/i18n/unum.cpp index fa01efe67b8..6afa3ab28fe 100644 --- a/icu4c/source/i18n/unum.cpp +++ b/icu4c/source/i18n/unum.cpp @@ -100,6 +100,7 @@ unum_open( UNumberFormatStyle style, return 0; } if (U_FAILURE(*status)) { + delete syms; return 0; }