[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1066-gbfe6186

Volker Lendecke vlendec at samba.org
Mon May 25 14:15:17 GMT 2009


The branch, v3-4-test has been updated
       via  bfe6186c600470916d73c3d3b17b6dfc27c299bd (commit)
      from  b9344264c0d2108fbbb6ed9b19da9a56b6444211 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit bfe6186c600470916d73c3d3b17b6dfc27c299bd
Author: Slava Semushin <php-coder at altlinux.ru>
Date:   Sat May 23 21:02:40 2009 +0700

    nsswitch/winbind_nss_aix.c(fill_grent): fixed memory leak.
    
    Found by cppcheck:
    [./nsswitch/winbind_nss_aix.c:241]: (error) Memory leak: result

-----------------------------------------------------------------------

Summary of changes:
 nsswitch/winbind_nss_aix.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/winbind_nss_aix.c b/nsswitch/winbind_nss_aix.c
index 17578cf..66200f3 100644
--- a/nsswitch/winbind_nss_aix.c
+++ b/nsswitch/winbind_nss_aix.c
@@ -237,6 +237,9 @@ static struct group *fill_grent(struct winbindd_gr *gr, char *gr_mem)
 
 	result->gr_mem = (char **)malloc(sizeof(char *) * (gr->num_gr_mem+1));
 	if (!result->gr_mem) {
+		free(result->gr_name);
+		free(result->gr_passwd);
+		free(result);
 		errno = ENOMEM;
 		return NULL;
 	}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list