Eliminate memory leak in mountd (bz 239536)

This commit is contained in:
Steve Dickson 2007-05-10 17:29:15 +00:00
parent 46b109064d
commit 28dbfad15f
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,23 @@
commit 12749181ceaa0711cc857b7639c0a559d5e65197
Author: Steve Dickson <steved@redhat.com>
Date: Thu May 10 11:54:59 2007 -0400
Close memory leak in mountd
Signed-off-by: Steve Dickson <steved@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;
}

View File

@ -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 <steved@redhat.com> 1.0.12-4
- Replace portmap dependency with an rpcbind dependency (bz 228894)