update frameworks/intl/src/locale_config.cpp.

ccm

Signed-off-by: LY <liuyong235@huawei.com>
This commit is contained in:
LY 2024-03-21 13:41:32 +00:00 committed by Gitee
parent beb14dfb90
commit 18278704b1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -587,7 +587,9 @@ void LocaleConfig::LoadRegionsLanguages(unordered_set<std::string>& forbiddenReg
reinterpret_cast<const xmlChar *>(FORBIDDEN_LANGUAGES_NAME))) {
Split(reinterpret_cast<const char*>(content), ",", blockedLanguages);
}
xmlFree(content);
if (!content) {
xmlFree(content);
}
cur = cur->next;
}
xmlFreeDoc(doc);