libipsec: Fix memory leak in event relay
[strongswan.git] / src / libipsec / ipsec_event_relay.c
index 3422225..c6b2a55 100644 (file)
 #include "ipsec_event_relay.h"
 
 #include <library.h>
-#include <debug.h>
+#include <utils/debug.h>
 #include <threading/rwlock.h>
-#include <utils/linked_list.h>
-#include <utils/blocking_queue.h>
+#include <collections/linked_list.h>
+#include <collections/blocking_queue.h>
 #include <processing/jobs/callback_job.h>
 
 typedef struct private_ipsec_event_relay_t private_ipsec_event_relay_t;
@@ -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;
 }