From: David van Moolenbroek Date: Wed, 15 Feb 2012 13:22:45 +0000 (+0100) Subject: libblockdriver: attribute usage bugfix X-Git-Tag: v3.2.0~29 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch07.html?a=commitdiff_plain;h=1ead18e44754709fbb42ac204f88a0d6e65bd104;p=minix.git libblockdriver: attribute usage bugfix --- diff --git a/lib/libblockdriver/driver_mt.c b/lib/libblockdriver/driver_mt.c index b3c686c14..e1673a8eb 100644 --- a/lib/libblockdriver/driver_mt.c +++ b/lib/libblockdriver/driver_mt.c @@ -233,6 +233,8 @@ PRIVATE void master_create_worker(worker_t *wp, worker_id_t worker_id, r = mthread_create(&wp->mthread, &attr, worker_thread, (void *) wp); if (r != 0) panic("blockdriver_mt: could not start thread %d (%d)", worker_id, r); + + mthread_attr_destroy(&attr); } /*===========================================================================*