ICU-7216 Fix possible memory leak in error case.

X-SVN-Rev: 28168
This commit is contained in:
Andy Heninger 2010-06-10 17:53:26 +00:00
parent aef7b19644
commit 9b68c719ad

View file

@ -100,6 +100,7 @@ unum_open( UNumberFormatStyle style,
return 0;
}
if (U_FAILURE(*status)) {
delete syms;
return 0;
}