From 28dbfad15f2c072c831602a459898ce7e716792f Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 10 May 2007 17:29:15 +0000 Subject: [PATCH] Eliminate memory leak in mountd (bz 239536) --- nfs-utils-1.0.12-mountd-memleak.patch | 23 +++++++++++++++++++++++ nfs-utils.spec | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 nfs-utils-1.0.12-mountd-memleak.patch diff --git a/nfs-utils-1.0.12-mountd-memleak.patch b/nfs-utils-1.0.12-mountd-memleak.patch new file mode 100644 index 0000000..2575c52 --- /dev/null +++ b/nfs-utils-1.0.12-mountd-memleak.patch @@ -0,0 +1,23 @@ +commit 12749181ceaa0711cc857b7639c0a559d5e65197 +Author: Steve Dickson +Date: Thu May 10 11:54:59 2007 -0400 + + Close memory leak in mountd + + Signed-off-by: Steve Dickson + +diff --git a/support/export/client.c b/support/export/client.c +index 33dfdb0..5ffba63 100644 +--- a/support/export/client.c ++++ b/support/export/client.c +@@ -262,6 +262,10 @@ client_compose(struct in_addr addr) + name = add_name(name, clp->m_hostname); + } + } ++ ++ if (he != NULL) ++ free(he); ++ + return name; + } + diff --git a/nfs-utils.spec b/nfs-utils.spec index afb6c40..d365fce 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -48,6 +48,7 @@ Patch80: nfs-utils-1.0.9-mount-quotes.patch Patch81: nfs-utils-1.0.10-mount-fake.patch Patch82: nfs-utils-1.0.12-mount-v4-errors.patch Patch83: nfs-utils-1.0.12-rmtab-ipaddr-manupdate.patch +Patch84: nfs-utils-1.0.12-mountd-memleak.patch %if %{enablefscache} Patch90: nfs-utils-1.0.9-mount-fsc.patch @@ -121,6 +122,7 @@ This package also contains the mount.nfs and umount.nfs program. %patch81 -p1 %patch82 -p1 %patch83 -p1 +%patch84 -p1 %if %{enablefscache} %patch90 -p1 %endif @@ -300,6 +302,7 @@ fi - Fix mount.nfs4 to display correct error message (bz 227212) - Updated mountd and showmount reverse lookup flags (bz 220772) - Eliminate timeout on nfsd shutdowns (bz 222001) +- Eliminate memory leak in mountd (bz 239536) * Tue Apr 3 2007 Steve Dickson 1.0.12-4 - Replace portmap dependency with an rpcbind dependency (bz 228894)