From edae3d63140b07d3382f9592f3a5ede995fedb14 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 3 Jun 2016 14:46:49 +0200 Subject: add patch series --- debian/patches/nfs0001-nfs-fix-memory-leak.patch | 38 ++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 39 insertions(+) create mode 100644 debian/patches/nfs0001-nfs-fix-memory-leak.patch (limited to 'debian/patches') 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 +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 -- cgit v1.2.3