diff options
Diffstat (limited to 'debian/patches/0000-fix-node-leak.patch')
-rw-r--r-- | debian/patches/0000-fix-node-leak.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/0000-fix-node-leak.patch b/debian/patches/0000-fix-node-leak.patch new file mode 100644 index 00000000..d3f593aa --- /dev/null +++ b/debian/patches/0000-fix-node-leak.patch @@ -0,0 +1,21 @@ +commit c29aecfba1c854ccaacb66b4fe6424d5af236211 +Author: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Sat May 24 20:29:23 2014 +0200 + + libdiskfs: fix node leak in the name cache + + * libdiskfs/name-cache.c (diskfs_check_lookup_cache): Release node + reference in a special case of lookup failure. + +diff --git a/libdiskfs/name-cache.c b/libdiskfs/name-cache.c +index c113692..a212a6d 100644 +--- a/libdiskfs/name-cache.c ++++ b/libdiskfs/name-cache.c +@@ -249,6 +249,7 @@ diskfs_check_lookup_cache (struct node *dir, const char *name) + { + /* Lose */ + pthread_mutex_unlock (&np->lock); ++ diskfs_nrele (np); + return 0; + } + } |