[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Mon Nov 10 11:01:03 MST 2014


The branch, master has been updated
       via  853b96f eventlog: Free tos talloced path.
       via  6e86bd5 mapping_tdb: add missing talloc_free in error path
      from  2afc5b7 Don't use a nested function when testing for visibility attribute support.

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


- Log -----------------------------------------------------------------
commit 853b96f4db8d9e3e797bf4e8576ab5b12bdd6ace
Author: David Disseldorp <ddiss at samba.org>
Date:   Thu Nov 6 11:32:45 2014 +0100

    eventlog: Free tos talloced path.
    
    Non-error code path was missed in the last talloc tos leak fix patch-set.
    
    Signed-off-by: David Disseldorp <ddiss at samba.org>
    Reviewed-by: Andreas Schneider <asn at samba.org>
    
    Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
    Autobuild-Date(master): Mon Nov 10 19:00:01 CET 2014 on sn-devel-104

commit 6e86bd5dabf585643a176ee24a7064802576d555
Author: David Disseldorp <ddiss at samba.org>
Date:   Mon Nov 3 14:33:06 2014 +0100

    mapping_tdb: add missing talloc_free in error path
    
    Reported-by: Michael Croes <mycroes at gmail.com>
    Signed-off-by: David Disseldorp <ddiss at samba.org>
    Reviewed-by: Andreas Schneider <asn at samba.org>

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

Summary of changes:
 source3/groupdb/mapping_tdb.c   | 1 +
 source3/lib/eventlog/eventlog.c | 1 +
 2 files changed, 2 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index ab79b68..e793ef3 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -69,6 +69,7 @@ static bool init_group_mapping(void)
 
 	ldb_path = state_path("group_mapping.ldb");
 	if (ldb_path == NULL) {
+		talloc_free(tdb_path);
 		return false;
 	}
 	if (file_exist(ldb_path) && !mapping_switch(ldb_path)) {
diff --git a/source3/lib/eventlog/eventlog.c b/source3/lib/eventlog/eventlog.c
index b63111e..81957b1 100644
--- a/source3/lib/eventlog/eventlog.c
+++ b/source3/lib/eventlog/eventlog.c
@@ -90,6 +90,7 @@ char *elog_tdbname(TALLOC_CTX *ctx, const char *name )
 		return NULL;
 	}
 
+	talloc_free(path);
 	return tdbname;
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list