cwa14890.c: fixed potential resource leak
This commit is contained in:
parent
21a8e7e5f9
commit
0f9645587a
|
@ -1402,6 +1402,7 @@ int cwa_create_secure_channel(sc_card_t * card,
|
||||||
/* arriving here means ok: cleanup */
|
/* arriving here means ok: cleanup */
|
||||||
res = SC_SUCCESS;
|
res = SC_SUCCESS;
|
||||||
csc_end:
|
csc_end:
|
||||||
|
free(tlv);
|
||||||
if (icc_cert)
|
if (icc_cert)
|
||||||
X509_free(icc_cert);
|
X509_free(icc_cert);
|
||||||
if (ca_cert)
|
if (ca_cert)
|
||||||
|
|
Loading…
Reference in New Issue