eap-sim-pcsc: Fix leak in error case
authorTobias Brunner <tobias@strongswan.org>
Fri, 7 Sep 2018 08:36:41 +0000 (10:36 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Sep 2018 16:18:49 +0000 (18:18 +0200)
src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c

index dbf6608..141b123 100644 (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;
        }