libipsec: Fix memory leak in event relay
authorTobias Brunner <tobias@strongswan.org>
Mon, 22 Apr 2013 13:41:22 +0000 (15:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 3 May 2013 14:02:39 +0000 (16:02 +0200)
src/libipsec/ipsec_event_relay.c

index d7d7e82..c6b2a55 100644 (file)
@@ -118,6 +118,7 @@ static job_requeue_t handle_events(private_ipsec_event_relay_t *this)
        }
        enumerator->destroy(enumerator);
        this->lock->unlock(this->lock);
+       free(event);
        return JOB_REQUEUE_DIRECT;
 }