Skip to content

Commit 381e9b3

Browse files
bugfix: wrong memory size for the pernding timers array. (openresty#2048)
1 parent af130ae commit 381e9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ ngx_http_lua_abort_pending_timers(ngx_event_t *ev)
821821
prev = NULL;
822822

823823
events = ngx_pcalloc(ngx_cycle->pool,
824-
lmcf->pending_timers * sizeof(ngx_event_t));
824+
lmcf->pending_timers * sizeof(ngx_event_t *));
825825
if (events == NULL) {
826826
return;
827827
}

0 commit comments

Comments
 (0)