summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trans/hello-mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/hello-mt.c b/trans/hello-mt.c
index 632d3730..c2d4cc99 100644
--- a/trans/hello-mt.c
+++ b/trans/hello-mt.c
@@ -111,7 +111,7 @@ close_hook (struct trivfs_peropen *peropen)
{
struct open *op = peropen->hook;
- pthread_mutex_init (&op->lock, NULL);
+ pthread_mutex_destroy (&op->lock);
free (op);
}