rpms/nfs-utils/FC-6 nfs-utils-1.0.10-mountd-memleak.patch, NONE, 1.1 nfs-utils.spec, 1.120, 1.121

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu May 10 17:28:10 UTC 2007


Author: steved

Update of /cvs/dist/rpms/nfs-utils/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv23394

Modified Files:
	nfs-utils.spec 
Added Files:
	nfs-utils-1.0.10-mountd-memleak.patch 
Log Message:
Eliminate memory leak in mountd (bz 239536)


nfs-utils-1.0.10-mountd-memleak.patch:
 client.c |    4 ++++
 1 files changed, 4 insertions(+)

--- NEW FILE nfs-utils-1.0.10-mountd-memleak.patch ---
commit 12749181ceaa0711cc857b7639c0a559d5e65197
Author: Steve Dickson <steved at redhat.com>
Date:   Thu May 10 11:54:59 2007 -0400

    Close memory leak in mountd
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

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;
 }
 


Index: nfs-utils.spec
===================================================================
RCS file: /cvs/dist/rpms/nfs-utils/FC-6/nfs-utils.spec,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -r1.120 -r1.121
--- nfs-utils.spec	10 May 2007 15:34:42 -0000	1.120
+++ nfs-utils.spec	10 May 2007 17:28:08 -0000	1.121
@@ -51,6 +51,7 @@
 Patch81: nfs-utils-1.0.10-mount-fake.patch
 Patch82: nfs-utils-1.0.10-mount-mtablock.patch
 Patch83: nfs-utils-1.0.10-mount-reserved-port.patch
+Patch84: nfs-utils-1.0.10-mountd-memleak.patch
 
 
 %if %{enablefscache}
@@ -124,6 +125,7 @@
 %patch81 -p1
 %patch82 -p1
 %patch83 -p1
+%patch84 -p1
 %if %{enablefscache}
 %patch90 -p1
 %endif
@@ -303,6 +305,7 @@
 %changelog
 * Thu May 10 2007 Steve Dickson <steved at redhat.com> 1.0.10-9
 - Eliminate timeout on nfsd shutdowns (bz 222001)
+- Eliminate memory leak in mountd (bz 239536)
 
 * Fri Mar 16 2007 Steve Dickson <steved at redhat.com> 1.0.10-8
 - Stop mount from wasting reserve ports (bz 230969)




More information about the fedora-cvs-commits mailing list