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 | |
parent | e5ca8abc4fa4a8d91ad549de71f070b8dbe09c83 (diff) |
add patch series
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/nfs0001-nfs-fix-memory-leak.patch | 38 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 39 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 + diff --git a/debian/patches/series b/debian/patches/series index aab377ae..45cd2525 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -40,3 +40,4 @@ hurdutil0001-libhurdutil-New-library-containing-utils-to-be-used-.patch external.patch corefiles0001-trans-crash-xxx-core-file-templates.patch crash0001-xxx-crash-logging-works.patch +nfs0001-nfs-fix-memory-leak.patch |