diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-02-09 15:07:19 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-02-09 15:07:19 -0500 |
commit | 19715a60e28ec2490bbdb45ab36921f5a47fc74d (patch) | |
tree | c5e44293fdc91463cfe6b0b358736523e16417b7 /event_iocp.c | |
parent | 6f6cebe3561e886396737a011b82c2028d7468c7 (diff) | |
download | libevent-19715a60e28ec2490bbdb45ab36921f5a47fc74d.tar.gz |
Avoid crash when freeing event_iocp and using event_set_mem_functions
There was a calloc that needed to be an mm_calloc.
Reported by "fffvvvzz" on sourceforge. Ticket 3486114
Diffstat (limited to 'event_iocp.c')
-rw-r--r-- | event_iocp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/event_iocp.c b/event_iocp.c index de6b70b1..12994222 100644 --- a/event_iocp.c +++ b/event_iocp.c @@ -183,7 +183,7 @@ event_iocp_port_launch(int n_cpus) if (n_cpus <= 0) n_cpus = N_CPUS_DEFAULT; port->n_threads = n_cpus * 2; - port->threads = calloc(port->n_threads, sizeof(HANDLE)); + port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); if (!port->threads) goto err; |