mirror of
https://github.com/estkme-group/lpac
synced 2024-09-11 19:40:49 +02:00
Free es10cex allocated memory (#33)
This commit is contained in:
parent
ff6c5f3543
commit
3c881eef7e
|
@ -297,4 +297,48 @@ exit:
|
|||
|
||||
void es10cex_free_euiccinfo2(struct es10cex_euiccinfo2 *info)
|
||||
{
|
||||
if (info->euiccCiPKIdListForVerification)
|
||||
{
|
||||
for (int i = 0; info->euiccCiPKIdListForVerification[i] != NULL; i++)
|
||||
{
|
||||
free(info->euiccCiPKIdListForVerification[i]);
|
||||
}
|
||||
free(info->euiccCiPKIdListForVerification);
|
||||
}
|
||||
|
||||
if (info->euiccCiPKIdListForSigning)
|
||||
{
|
||||
for (int i = 0; info->euiccCiPKIdListForSigning[i] != NULL; i++)
|
||||
{
|
||||
free(info->euiccCiPKIdListForSigning[i]);
|
||||
}
|
||||
free(info->euiccCiPKIdListForSigning);
|
||||
}
|
||||
|
||||
if (info->uiccCapability)
|
||||
{
|
||||
free(info->uiccCapability);
|
||||
}
|
||||
|
||||
if (info->rspCapability)
|
||||
{
|
||||
free(info->rspCapability);
|
||||
}
|
||||
|
||||
if (info->forbiddenProfilePolicyRules)
|
||||
{
|
||||
free(info->forbiddenProfilePolicyRules);
|
||||
}
|
||||
|
||||
if (info->certificationDataObject.discoveryBaseURL)
|
||||
{
|
||||
free(info->certificationDataObject.discoveryBaseURL);
|
||||
}
|
||||
|
||||
if (info->certificationDataObject.platformLabel)
|
||||
{
|
||||
free(info->certificationDataObject.platformLabel);
|
||||
}
|
||||
|
||||
free(info);
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ static int applet_main(int argc, char **argv)
|
|||
jprint_success(jdata);
|
||||
|
||||
free(eid);
|
||||
// es10cex_free_euiccinfo2(&euiccinfo2);
|
||||
es10cex_free_euiccinfo2(euiccinfo2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue