]> Zhao Yanbai Git Server - minix.git/commitdiff
libblockdriver: attribute usage bugfix
authorDavid van Moolenbroek <david@minix3.org>
Wed, 15 Feb 2012 13:22:45 +0000 (14:22 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Wed, 15 Feb 2012 13:23:30 +0000 (14:23 +0100)
lib/libblockdriver/driver_mt.c

index b3c686c142fca39cdebf5d87562cfcee2874a7bf..e1673a8eba94e32ded67991b212c484a2d34e684 100644 (file)
@@ -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);
 }
 
 /*===========================================================================*