Revert "Fix non-free'd context."

This reverts commit 9335b088cf.
This commit is contained in:
Pol Henarejos 2024-08-25 19:55:02 +02:00
parent ef03ce4020
commit 28c63a500c
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

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