summaryrefslogtreecommitdiff
path: root/lib/libevent/kqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libevent/kqueue.c')
-rw-r--r--lib/libevent/kqueue.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libevent/kqueue.c b/lib/libevent/kqueue.c
index 82a0c7e6f17..47966680bfc 100644
--- a/lib/libevent/kqueue.c
+++ b/lib/libevent/kqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue.c,v 1.38 2015/12/25 17:10:05 tedu Exp $ */
+/* $OpenBSD: kqueue.c,v 1.39 2016/09/03 11:31:17 nayden Exp $ */
/*
* Copyright 2000-2002 Niels Provos <provos@citi.umich.edu>
@@ -420,10 +420,8 @@ kq_dealloc(struct event_base *base, void *arg)
evsignal_dealloc(base);
- if (kqop->changes)
- free(kqop->changes);
- if (kqop->events)
- free(kqop->events);
+ free(kqop->changes);
+ free(kqop->events);
if (kqop->kq >= 0 && kqop->pid == getpid())
close(kqop->kq);