aboutsummaryrefslogtreecommitdiff
path: root/src/pevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pevent.c')
-rw-r--r--src/pevent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pevent.c b/src/pevent.c
index 60a954d..ddb5a03 100644
--- a/src/pevent.c
+++ b/src/pevent.c
@@ -23,6 +23,8 @@ void event_init(event_ctx **ctx)
void event_free(event_ctx **ctx)
{
+ assert(ctx && *ctx);
+
close((*ctx)->epoll_fd);
free((*ctx));
*ctx = NULL;