Fix non-free'd context.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-08-25 19:39:47 +02:00
parent 9cc934282c
commit 9335b088cf
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -317,8 +317,8 @@ int cmd_bip_slip() {
&nodes,
last_node,
&hd_keytype);
mbedtls_ecp_keypair_free(&hd_context);
if (r != CCID_OK) {
mbedtls_ecp_keypair_free(&hd_context);
return SW_EXEC_ERROR();
}
}