lpac-jni: Make sure to free EuiccInfo2
This commit is contained in:
parent
bf36188219
commit
68f1e370fc
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,7 @@ class LocalProfileAssistantImpl(
|
|||
curr = LpacJni.stringArrNext(curr)
|
||||
}
|
||||
|
||||
return EuiccInfo2(
|
||||
val ret = EuiccInfo2(
|
||||
LpacJni.euiccInfo2GetProfileVersion(cInfo),
|
||||
LpacJni.euiccInfo2GetEuiccFirmwareVersion(cInfo),
|
||||
LpacJni.euiccInfo2GetGlobalPlatformVersion(cInfo),
|
||||
|
@ -116,6 +116,10 @@ class LocalProfileAssistantImpl(
|
|||
euiccCiPKIdListForSigning.toTypedArray(),
|
||||
euiccCiPKIdListForVerification.toTypedArray()
|
||||
)
|
||||
|
||||
LpacJni.euiccInfo2Free(cInfo)
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
override fun enableProfile(iccid: String, refresh: Boolean): Boolean =
|
||||
|
|
Loading…
Add table
Reference in a new issue