summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-02-04 07:01:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:33 -0500
commit8a2b44e56fd9ca32fa7de8cd3d0286ef7067cbf2 (patch)
treef4c05ff2ec29da10e67359833376d4db2daaf15d /source3
parent44be949f28774cae4e79704c1c8f5d624f2bd46c (diff)
downloadsamba-8a2b44e56fd9ca32fa7de8cd3d0286ef7067cbf2.tar.gz
samba-8a2b44e56fd9ca32fa7de8cd3d0286ef7067cbf2.tar.bz2
samba-8a2b44e56fd9ca32fa7de8cd3d0286ef7067cbf2.zip
r5225: fix mem leak and debug message
metze (This used to be commit c0ee5922cdd4e57007e3a8f16cae71550fb38f2e)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/nttrans.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 2395d0d8db..5758b9d716 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -2143,6 +2143,7 @@ static int call_nt_transact_ioctl(connection_struct *conn, char *inbuf, char *ou
shadow_data = TALLOC_ZERO_P(shadow_mem_ctx,SHADOW_COPY_DATA);
if (shadow_data == NULL) {
DEBUG(0,("talloc_zero() failed!\n"));
+ talloc_destroy(shadow_mem_ctx);
return ERROR_NT(NT_STATUS_NO_MEMORY);
}
@@ -2310,7 +2311,7 @@ static int call_nt_transact_get_user_quota(connection_struct *conn, char *inbuf,
/* access check */
if (current_user.uid != 0) {
- DEBUG(1,("set_user_quota: access_denied service [%s] user [%s]\n",
+ DEBUG(1,("get_user_quota: access_denied service [%s] user [%s]\n",
lp_servicename(SNUM(conn)),conn->user));
return ERROR_DOS(ERRDOS,ERRnoaccess);
}