summaryrefslogtreecommitdiff
path: root/event_iocp.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-02-09 15:16:02 -0500
committerNick Mathewson <nickm@torproject.org>2012-02-09 15:16:02 -0500
commitdf19ba6a0365d1dc480d5a6ffa9855fdec9910fc (patch)
treeaceb3e312bf05db6fa9d8b365abde79471843953 /event_iocp.c
parentc00416f745955684a9034866c53357e93329b3b3 (diff)
parent19715a60e28ec2490bbdb45ab36921f5a47fc74d (diff)
downloadlibevent-df19ba6a0365d1dc480d5a6ffa9855fdec9910fc.tar.gz
Merge remote-tracking branch 'origin/patches-2.0'
Diffstat (limited to 'event_iocp.c')
-rw-r--r--event_iocp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event_iocp.c b/event_iocp.c
index 36cb087e..d9610b67 100644
--- a/event_iocp.c
+++ b/event_iocp.c
@@ -184,7 +184,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;