Skip to content

Conversation

icy17
Copy link
Contributor

@icy17 icy17 commented Apr 10, 2024

No description provided.

@@ -110,5 +110,11 @@ main(int argc, char **argv)
event_free(ev);
event_base_free(base);
return 0;
err:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

event_config_new can also fail, can you add a check and return 1 there

@@ -110,5 +110,11 @@ main(int argc, char **argv)
event_free(ev);
event_base_free(base);
return 0;
err:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And you need to use goto err for evutil_socketpair failure

@azat
Copy link
Member

azat commented Jul 8, 2024

Merged in #1613. Thank you for your contribution!

@azat azat closed this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants