diff --git a/ChangeLog b/ChangeLog index da87321d..9c1bab39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ Changes in 1.4.5-stable: o Fix connection keep-alive behavior for HTTP/1.0 o Fix use of freed memory in event_reinit; pointed out by Peter Postma o Constify struct timeval * where possible; pointed out by Forest Wilkinson + o allow min_heap_erase to be called on removed members; from liusifan. Changes in 1.4.4-stable: o Correct the documentation on buffer printf functions. diff --git a/min_heap.h b/min_heap.h index 664c559c..d47e5638 100644 --- a/min_heap.h +++ b/min_heap.h @@ -75,8 +75,8 @@ struct event* min_heap_pop(min_heap_t* s) if(s->n) { struct event* e = *s->p; - e->min_heap_idx = -1; min_heap_shift_down_(s, 0u, s->p[--s->n]); + e->min_heap_idx = -1; return e; } return 0;