eap-sim-file: Remove redundant enumerator allocation
authorTobias Brunner <tobias@strongswan.org>
Fri, 26 May 2017 14:42:59 +0000 (16:42 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 26 May 2017 14:42:59 +0000 (16:42 +0200)
src/libcharon/plugins/eap_sim_file/eap_sim_file_triplets.c

index e11e0e5..03a60cf 100644 (file)
@@ -120,7 +120,7 @@ METHOD(enumerator_t, enumerator_enumerate, bool,
 METHOD(eap_sim_file_triplets_t, create_enumerator, enumerator_t*,
        private_eap_sim_file_triplets_t *this)
 {
-       triplet_enumerator_t *enumerator = malloc_thing(triplet_enumerator_t);
+       triplet_enumerator_t *enumerator;
 
        this->mutex->lock(this->mutex);
        INIT(enumerator,