[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28-119-gd15d99d

Volker Lendecke vl at samba.org
Sun Feb 3 10:19:01 GMT 2008


The branch, v3-0-test has been updated
       via  d15d99da3a1a6bcb1be196de0a193b75151006e9 (commit)
      from  dd3441022775f24cf66bd75daf899e92492eaeec (commit)

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


- Log -----------------------------------------------------------------
commit d15d99da3a1a6bcb1be196de0a193b75151006e9
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Feb 3 11:18:02 2008 +0100

    Fix two memleaks
    
    Thanks to Andreas Schneider <anschneider at suse.de> for nagging :-)

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

Summary of changes:
 source/smbd/password.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/password.c b/source/smbd/password.c
index 8f75ea8..254d3cf 100644
--- a/source/smbd/password.c
+++ b/source/smbd/password.c
@@ -176,12 +176,14 @@ int register_vuid(auth_serversupplied_info *server_info,
 	/* Limit allowed vuids to 16bits - VUID_OFFSET. */
 	if (num_validated_vuids >= 0xFFFF-VUID_OFFSET) {
 		data_blob_free(&session_key);
+		TALLOC_FREE(server_info);
 		return UID_FIELD_INVALID;
 	}
 
 	if((vuser = SMB_MALLOC_P(user_struct)) == NULL) {
 		DEBUG(0,("Failed to malloc users struct!\n"));
 		data_blob_free(&session_key);
+		TALLOC_FREE(server_info);
 		return UID_FIELD_INVALID;
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list