From 25b5fdbccab1a05f8d772efb0e43a98ac6abea30 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 19 Mar 2008 10:26:00 +0000 Subject: [PATCH] Fix missing pthread_mutex_destroy... --- ChangeLog | 5 +++++ lib/fuse.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2ac80dd..3de8479 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-19 Miklos Szeredi + + * Fix missing pthread_mutex_destroy in error path of + fuse_lib_opendir(). Patch by Szabolcs Szakacsits + 2008-03-07 Miklos Szeredi * Add queuing on contention to per-node lock algorithm, to avoid diff --git a/lib/fuse.c b/lib/fuse.c index 59bb815..7c1025d 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -2327,6 +2327,7 @@ static void fuse_lib_opendir(fuse_req_t req, fuse_ino_t ino, } } else { reply_err(req, err); + pthread_mutex_destroy(&dh->lock); free(dh); } free_path(f, ino, path); -- 2.30.2