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

View File

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