eap-sim-pcsc: Fix leak in error case

This commit is contained in:
Tobias Brunner 2018-09-07 10:36:41 +02:00
parent e2d8833f2b
commit 23d756e4f0
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ METHOD(simaka_card_t, get_triplet, bool,
if (rv != SCARD_S_SUCCESS)
{
DBG1(DBG_IKE, "SCardListReaders: %s", pcsc_stringify_error(rv));
free(mszReaders);
return FALSE;
}