rpms/nfs4-acl-tools/devel nfs4acl-0.3.3-memleak.patch, NONE, 1.1 nfs4-acl-tools.spec, 1.9, 1.10

Steve Dickson steved at fedoraproject.org
Mon Nov 16 19:34:19 UTC 2009


Author: steved

Update of /cvs/pkgs/rpms/nfs4-acl-tools/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19334

Modified Files:
	nfs4-acl-tools.spec 
Added Files:
	nfs4acl-0.3.3-memleak.patch 
Log Message:
Fix a memory leak in nfs4_getfacl



nfs4acl-0.3.3-memleak.patch:
 nfs4_getfacl.c |    1 +
 1 file changed, 1 insertion(+)

--- NEW FILE nfs4acl-0.3.3-memleak.patch ---
the memory of nfs4_acl should be freed before exiting from 'nfs4_getfacl'.

Signed-off-by: Yu Zhiguo <yuzg at cn.fujitsu.com>
---
 nfs4_getfacl/nfs4_getfacl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/nfs4_getfacl/nfs4_getfacl.c b/nfs4_getfacl/nfs4_getfacl.c
index c6ffe54..5363096 100644
--- a/nfs4_getfacl/nfs4_getfacl.c
+++ b/nfs4_getfacl/nfs4_getfacl.c
@@ -71,6 +71,7 @@ int main(int argc, char **argv)
 	acl = nfs4_acl_for_path(argv[1]);
 	if (acl != NULL) {
 		nfs4_print_acl(stdout, acl);
+		nfs4_free_acl(acl);
 		res = 0;
 	}
 out:



Index: nfs4-acl-tools.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nfs4-acl-tools/devel/nfs4-acl-tools.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- nfs4-acl-tools.spec	16 Nov 2009 19:12:42 -0000	1.9
+++ nfs4-acl-tools.spec	16 Nov 2009 19:34:19 -0000	1.10
@@ -1,6 +1,6 @@
 Name:           nfs4-acl-tools
 Version:        0.3.3
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        The nfs4 ACL tools
 Group:          Applications/System
 License:        BSD
@@ -13,6 +13,7 @@ BuildRequires: libtool
 BuildRequires: libattr-devel
 
 Patch001: nfs4acl-0.3.3-ace.patch
+Patch002: nfs4acl-0.3.3-memleak.patch
 
 Patch100: nfs4acl-0.2.0-compile.patch
 
@@ -24,6 +25,7 @@ NFSv4 client.
 %setup -q
 
 %patch001 -p1
+%patch002 -p1
 
 %patch100 -p1
 
@@ -56,6 +58,9 @@ rm -rf %{buildroot}
 %{_mandir}/man5/*
 
 %changelog
+* Mon Nov 16 2009 Steve Dickson <steved at redhat.com> - 0.3.3-6
+- Fix a memory leak in nfs4_getfacl
+
 * Mon Nov 16 2009 Steve Dickson <steved at redhat.com> - 0.3.3-5
 - Fixes segfaulting issues with ACEs that have empty mask fields
 




More information about the scm-commits mailing list