From: Miklos Szeredi Date: Wed, 19 Mar 2008 10:26:00 +0000 (+0000) Subject: Fix missing pthread_mutex_destroy... X-Git-Tag: fuse_2_8_0_pre2~24 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=25b5fdbccab1a05f8d772efb0e43a98ac6abea30;p=qemu-gpiodev%2Flibfuse.git Fix missing pthread_mutex_destroy... --- 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);