Commit Diff


commit - 1c8e2cfac8b0d421f5363b90eea492e5cd09940f
commit + 93b39c2f4a792f8a83e7621425edbd48f0c16854
blob - 7847e850c8ce9f01d61ea2040c50c1ca94cc605b
blob + cc0b17db44d592bb3d0b20f73b44556cac260e9c
--- gotd/notify.c
+++ gotd/notify.c
@@ -118,6 +118,7 @@ remove_session(struct gotd_notify_session *session)
 	slot = session_hash(session->id) % nitems(gotd_notify_sessions);
 	STAILQ_REMOVE(&gotd_notify_sessions[slot], session,
 	    gotd_notify_session, entry);
+	close(session->iev.ibuf.fd);
 	free(session);
 }