From 14c3ff58a4f681d9f3475fbd828291185ac25703 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Jan 2014 18:51:10 +0100 Subject: [PATCH] db/upnp/WorkQueue: fix pthread_t[] allocation size Was using the wrong variable. --- src/db/upnp/WorkQueue.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/upnp/WorkQueue.hxx b/src/db/upnp/WorkQueue.hxx index 6a672273b..723254251 100644 --- a/src/db/upnp/WorkQueue.hxx +++ b/src/db/upnp/WorkQueue.hxx @@ -99,7 +99,7 @@ public: assert(n_threads == 0); assert(threads == nullptr); - threads = new pthread_t[n_threads]; + threads = new pthread_t[nworkers]; for (int i = 0; i < nworkers; i++) { int err;