summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-14 18:33:01 +0200
committerVolker Lendecke <vl@samba.org>2009-07-14 20:49:05 +0200
commit74046c8054d2afe7da51c1ff09ffd594a9cb8b73 (patch)
tree985948e4a7e9787ef7a6c39731fd76d863222d36
parentd57e67f9eb5a6a05f0e173d48e86dd1fe050635e (diff)
downloadsamba-74046c8054d2afe7da51c1ff09ffd594a9cb8b73.tar.gz
samba-74046c8054d2afe7da51c1ff09ffd594a9cb8b73.tar.bz2
samba-74046c8054d2afe7da51c1ff09ffd594a9cb8b73.zip
TALLOC_FREE(sd) in check_open_rights upon an error
-rw-r--r--source3/smbd/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index e01350f2bf..404461fb5e 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -94,6 +94,7 @@ static NTSTATUS check_open_rights(struct connection_struct *conn,
"on %s: %s\n",
smb_fname_str_dbg(smb_fname),
nt_errstr(status)));
+ TALLOC_FREE(sd);
return status;
}