On Sunday, 1 May 2022 11:10:13 CEST Marek Lindner wrote:
+static void unix_sock_event_listener_free(struct event_listener *listener) +{
- list_del_init(&listener->list);
- close(listener->fd);
- free(listener);
list_del_init has no benefit (only downsides) when you free the memory anyway at the end of the function
What are those downsides you are referring to ?
Additional writes for something which is dropped anyway.
Kind regards, Sven