[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Thu Jan 24 16:55:02 MST 2013


The branch, master has been updated
       via  da35cd7 Avoid a very small memleak on talloc_tos()
      from  996a10c Fix bug #9572 - File corruption during SMB1 read by Mac OSX 10.8.2 clients.

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


- Log -----------------------------------------------------------------
commit da35cd7bd230b2299f9566f4775bd98fda3024f8
Author: Volker Lendecke <vl at samba.org>
Date:   Thu Jan 24 16:39:05 2013 +0100

    Avoid a very small memleak on talloc_tos()
    
    "fname" did leak on talloc_tos(). Not really a bad memleak, but as I
    just came across it I thought I might just fix it
    
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Fri Jan 25 00:54:01 CET 2013 on sn-devel-104

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

Summary of changes:
 source3/lib/util.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/util.c b/source3/lib/util.c
index 5ffce58..e0cae91 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1522,10 +1522,7 @@ static char *xx_path(const char *name, const char *rootpath)
 			      "Error was %s\n", fname, name, strerror(errno)));
 	}
 
-	return talloc_asprintf(talloc_tos(),
-				"%s/%s",
-				fname,
-				name);
+	return talloc_asprintf_append(fname, "/%s", name);
 }
 
 /**


-- 
Samba Shared Repository


More information about the samba-cvs mailing list