diff options
author | Justus Winter <justus@gnupg.org> | 2016-06-03 14:46:49 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-06-03 14:46:49 +0200 |
commit | edae3d63140b07d3382f9592f3a5ede995fedb14 (patch) | |
tree | e3dcb62ad3c4687b24bb14337684b5ac47dd9597 /debian/patches/nfs0001-nfs-fix-memory-leak.patch | |
parent | e5ca8abc4fa4a8d91ad549de71f070b8dbe09c83 (diff) |
add patch series
Diffstat (limited to 'debian/patches/nfs0001-nfs-fix-memory-leak.patch')
-rw-r--r-- | debian/patches/nfs0001-nfs-fix-memory-leak.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/nfs0001-nfs-fix-memory-leak.patch b/debian/patches/nfs0001-nfs-fix-memory-leak.patch new file mode 100644 index 00000000..a7ea1aca --- /dev/null +++ b/debian/patches/nfs0001-nfs-fix-memory-leak.patch @@ -0,0 +1,38 @@ +From bd969cea69e46aa55cb844a9df94df1e51479020 Mon Sep 17 00:00:00 2001 +From: Justus Winter <justus@gnupg.org> +Date: Fri, 3 Jun 2016 14:44:22 +0200 +Subject: [PATCH hurd] nfs: fix memory leak + +* nfs/cache.c (netfs_node_norefs): Free node in any case. Previously, +netfs_node_norefs would have been called a second time, when the +temporary reference was released again. + +Amends: dd93fc4b. +--- + nfs/cache.c | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/nfs/cache.c b/nfs/cache.c +index ecf3b11..0c1a473 100644 +--- a/nfs/cache.c ++++ b/nfs/cache.c +@@ -146,12 +146,10 @@ netfs_node_norefs (struct node *np) + perror ("pthread_create"); + } + } +- else +- { +- if (np->nn->dtrans == SYMLINK) +- free (np->nn->transarg.name); +- free (np); +- } ++ ++ if (np->nn->dtrans == SYMLINK) ++ free (np->nn->transarg.name); ++ free (np); + } + + /* When dropping soft refs, we simply remove the node from the +-- +2.1.4 + |