[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1781-g95dbd7d

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


The branch, master has been updated
       via  95dbd7d6dce2583e785a17d5862a1a16838ec352 (commit)
      from  4258750e4f112040b3537c2c479f62b6e59b32e3 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 95dbd7d6dce2583e785a17d5862a1a16838ec352
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