cwa14890.c: fixed potential resource leak

This commit is contained in:
Frank Morgner 2015-11-01 10:44:23 +01:00
parent 21a8e7e5f9
commit 0f9645587a
1 changed files with 1 additions and 0 deletions

View File

@ -1402,6 +1402,7 @@ int cwa_create_secure_channel(sc_card_t * card,
/* arriving here means ok: cleanup */
res = SC_SUCCESS;
csc_end:
free(tlv);
if (icc_cert)
X509_free(icc_cert);
if (ca_cert)