diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-24 18:02:49 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-24 18:02:49 +0200 |
commit | a8416237f30f77c5e78b06a58298442245911fb5 (patch) | |
tree | 41cf60471ebdc9d0fc07c324384b83748847d16b /src/pevent.c | |
parent | d8a545695458635a45bf179413e8e3824f76cba0 (diff) |
POTD skeleton #79.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/pevent.c')
-rw-r--r-- | src/pevent.c | 2 |
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; |