We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7939ddf commit 8d9500bCopy full SHA for 8d9500b
Lib/poll_plugins/epoll_priv.c
@@ -6,7 +6,7 @@ int poll_create(void) {
6
}
7
8
int poll_set_data(void **_ev) {
9
- *_ev = memhook._malloc(sizeof(struct epoll_event));
+ *_ev = memhook._calloc(1, sizeof(struct epoll_event));
10
MOD_ALLOC_ASSERT(*_ev);
11
return MOD_OK;
12
Lib/poll_plugins/kqueue_priv.c
@@ -10,7 +10,7 @@ int poll_create(void) {
13
- *_ev = memhook._malloc(sizeof(struct kevent));
+ *_ev = memhook._calloc(1, sizeof(struct kevent));
14
15
16
0 commit comments