summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_extd_audit.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-06-30 23:08:02 -0700
committerTim Prouty <tprouty@samba.org>2009-07-06 15:38:36 -0700
commit133e915a81510f543f6458f377857d4f1b680970 (patch)
tree514a0ef32b22afa95e8760df6947b94d3b951636 /source3/modules/vfs_extd_audit.c
parent1b8ffb36b131268e602f494aecf34b0866ef7e34 (diff)
downloadsamba-133e915a81510f543f6458f377857d4f1b680970.tar.gz
samba-133e915a81510f543f6458f377857d4f1b680970.tar.bz2
samba-133e915a81510f543f6458f377857d4f1b680970.zip
s3 audit: Remove some recently introduced memory leaks in the audit modules
Diffstat (limited to 'source3/modules/vfs_extd_audit.c')
-rw-r--r--source3/modules/vfs_extd_audit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_extd_audit.c b/source3/modules/vfs_extd_audit.c
index 6f08a8e7b4..f442c05c29 100644
--- a/source3/modules/vfs_extd_audit.c
+++ b/source3/modules/vfs_extd_audit.c
@@ -178,7 +178,7 @@ static int audit_open(vfs_handle_struct *handle,
if (lp_syslog() > 0) {
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) : "");
@@ -221,8 +221,8 @@ static int audit_rename(vfs_handle_struct *handle,
if (lp_syslog() > 0) {
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) : "");
}