struct cynara_admin_policy **policies was uninitialized.
Normally it should be filled with cynara_admin_list_policies() call.
However, when that function failes, it leaves policies unaffected.
If this pointer is not NULL then it is being freed after it is used
to construct vector of policies.
Change-Id: Iff469205035a5240eee64ec87ea724b83577d105
CynaraPoliciesContainer &expectedPolicyList,
int expectedResult) {
- struct cynara_admin_policy **policies;
+ struct cynara_admin_policy **policies = nullptr;
int ret = cynara_admin_list_policies(m_admin,
startBucket,