Change-Id: I9da1046731377e5c47096f34769f38aa67a23ae2
/*
- * Copyright (c) 2014-2022 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2014-2022 Samsung Electronics Co., Ltd. All rights reserved
*
* This file is licensed under the terms of MIT License or the Apache License
* Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
};
} catch (...) {
LogError("Error while parsing server response");
- for (int i = 0; i < entriesCnt; ++i)
- delete(entries[i]);
- delete[] entries;
+ if (entries) {
+ for (int i = 0; i < entriesCnt; ++i)
+ delete(entries[i]);
+ delete[] entries;
+ }
return SECURITY_MANAGER_ERROR_UNKNOWN;
}
*p_size = entriesCnt;
/*
- * Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2017-2022 Samsung Electronics Co., Ltd. All rights reserved
*
* This file is licensed under the terms of MIT License or the Apache License
* Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
} catch (const std::exception &e) {
std::string error = e.what();
ALOGE("Exception: %s", error.c_str());
+ } catch (...) {
+ ALOGE("Unknown exception");
}
CONF_modules_free();