summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-07-03 17:15:30 -0700
committerTim Prouty <tprouty@samba.org>2009-07-06 15:38:47 -0700
commitfd73ab5782bc086f67f159aac378c8dcb95ed4aa (patch)
treeb3d1383761717201aa5d3763d9cac4b00dd4f00d
parent3cb0e521e1bdddde972b6fd08fb86f7fe73da8d5 (diff)
downloadsamba-fd73ab5782bc086f67f159aac378c8dcb95ed4aa.tar.gz
samba-fd73ab5782bc086f67f159aac378c8dcb95ed4aa.tar.bz2
samba-fd73ab5782bc086f67f159aac378c8dcb95ed4aa.zip
s3 audit: Fix a memory leak
-rw-r--r--source3/modules/vfs_audit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c
index 8c0141906b..cf2e27301d 100644
--- a/source3/modules/vfs_audit.c
+++ b/source3/modules/vfs_audit.c
@@ -148,7 +148,7 @@ static int audit_open(vfs_handle_struct *handle,
result = SMB_VFS_NEXT_OPEN(handle, smb_fname, fsp, flags, mode);
syslog(audit_syslog_priority(handle), "open %s (fd %d) %s%s%s\n",
- smb_fname_str_dbg(smb_fname), result,
+ smb_fname->base_name, result,
((flags & O_WRONLY) || (flags & O_RDWR)) ? "for writing " : "",
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : "");
@@ -179,8 +179,8 @@ static int audit_rename(vfs_handle_struct *handle,
result = SMB_VFS_NEXT_RENAME(handle, smb_fname_src, smb_fname_dst);
syslog(audit_syslog_priority(handle), "rename %s -> %s %s%s\n",
- smb_fname_str_dbg(smb_fname_src),
- smb_fname_str_dbg(smb_fname_dst),
+ smb_fname_src->base_name,
+ smb_fname_dst->base_name,
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : "");
@@ -195,7 +195,7 @@ static int audit_unlink(vfs_handle_struct *handle,
result = SMB_VFS_NEXT_UNLINK(handle, smb_fname);
syslog(audit_syslog_priority(handle), "unlink %s %s%s\n",
- smb_fname_str_dbg(smb_fname),
+ smb_fname->base_name,
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : "");