diff options
Diffstat (limited to 'debian/patches/0005-libdiskfs-fix-node-leak-in-the-name-cache.patch')
-rw-r--r-- | debian/patches/0005-libdiskfs-fix-node-leak-in-the-name-cache.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/0005-libdiskfs-fix-node-leak-in-the-name-cache.patch b/debian/patches/0005-libdiskfs-fix-node-leak-in-the-name-cache.patch new file mode 100644 index 00000000..31452c03 --- /dev/null +++ b/debian/patches/0005-libdiskfs-fix-node-leak-in-the-name-cache.patch @@ -0,0 +1,26 @@ +From b16f334192dbac002a33c31645e228d349de3c72 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Sat, 24 May 2014 20:29:23 +0200 +Subject: [PATCH 05/20] 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. +--- + libdiskfs/name-cache.c | 1 + + 1 file changed, 1 insertion(+) + +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; + } + } +-- +2.0.0.rc2 + |