[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-3321-gcc70e0f
Volker Lendecke
vlendec at samba.org
Mon Jan 5 12:38:00 GMT 2009
The branch, v3-2-test has been updated
via cc70e0f88328e36410089a81f41c5b33fef24a10 (commit)
from e85526b184e66f86b7faa9d0a37288a09c12c19e (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit cc70e0f88328e36410089a81f41c5b33fef24a10
Author: Volker Lendecke <vl at samba.org>
Date: Mon Jan 5 13:36:34 2009 +0100
Fix a bad memleak in vfs_full_audit
-----------------------------------------------------------------------
Summary of changes:
source/modules/vfs_full_audit.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/modules/vfs_full_audit.c b/source/modules/vfs_full_audit.c
index 68dd0b8..fd91bfe 100644
--- a/source/modules/vfs_full_audit.c
+++ b/source/modules/vfs_full_audit.c
@@ -701,6 +701,7 @@ static int audit_syslog_priority(vfs_handle_struct *handle)
static char *audit_prefix(TALLOC_CTX *ctx, connection_struct *conn)
{
char *prefix = NULL;
+ char *result;
prefix = talloc_strdup(ctx,
lp_parm_const_string(SNUM(conn), "full_audit",
@@ -708,12 +709,14 @@ static char *audit_prefix(TALLOC_CTX *ctx, connection_struct *conn)
if (!prefix) {
return NULL;
}
- return talloc_sub_advanced(ctx,
+ result = talloc_sub_advanced(ctx,
lp_servicename(SNUM(conn)), conn->user,
conn->connectpath, conn->gid,
get_current_username(),
current_user_info.domain,
prefix);
+ TALLOC_FREE(prefix);
+ return result;
}
static bool log_success(vfs_handle_struct *handle, vfs_op_type op)
--
Samba Shared Repository
More information about the samba-cvs
mailing list