aboutsummaryrefslogtreecommitdiff
path: root/src/pevent.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-05-24 18:02:49 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-05-24 18:02:49 +0200
commita8416237f30f77c5e78b06a58298442245911fb5 (patch)
tree41cf60471ebdc9d0fc07c324384b83748847d16b /src/pevent.c
parentd8a545695458635a45bf179413e8e3824f76cba0 (diff)
POTD skeleton #79.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
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;