[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4196-g8b90886

Jeremy Allison jra at samba.org
Mon Sep 29 19:05:43 GMT 2008


The branch, v3-3-test has been updated
       via  8b908862ec7de000865cd8dfa691f5643cb3d099 (commit)
      from  f495968c88f07b74a943da9e034084b72f5a1c8b (commit)

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


- Log -----------------------------------------------------------------
commit 8b908862ec7de000865cd8dfa691f5643cb3d099
Author: Andrew Tridgell <tridge at samba.org>
Date:   Mon Sep 29 12:04:57 2008 -0700

    fixed an (unlikely) memory leak

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

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


Changeset truncated at 500 lines:

diff --git a/source/lib/dbwrap_ctdb.c b/source/lib/dbwrap_ctdb.c
index e82e75d..1e3a97f 100644
--- a/source/lib/dbwrap_ctdb.c
+++ b/source/lib/dbwrap_ctdb.c
@@ -440,6 +440,7 @@ static struct db_record *db_ctdb_fetch_locked_persistent(struct db_ctdb_ctx *ctx
 	recp = talloc(rec, struct db_record *);
 	if (recp == NULL) {
 		ctx->db->transaction_cancel(ctx->db);
+		talloc_free(rec);
 		return NULL;
 	}
 	*recp = rec;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list