summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>1999-09-27 13:12:55 +0000
committerJean-François Micouleau <jfm@samba.org>1999-09-27 13:12:55 +0000
commited5fbd743be07a3c6e1a3879df283d0222ef0eb5 (patch)
tree17959ac98230e9d243f459b19a6961d6c8180b34 /source3/smbd
parent0490365b04564750d73eea36af0ba1444d1d3d77 (diff)
downloadsamba-ed5fbd743be07a3c6e1a3879df283d0222ef0eb5.tar.gz
samba-ed5fbd743be07a3c6e1a3879df283d0222ef0eb5.tar.bz2
samba-ed5fbd743be07a3c6e1a3879df283d0222ef0eb5.zip
don't leak printer handles,
don't coredump when adding forms, and a small non obvious memory leak in the rpc buffers J.F. (This used to be commit bee11f8889378b9f1cc6e2818fd0f8dd7ddcf10d)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/ipc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index 5a0bf6ac07..10c859d266 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -3128,7 +3128,10 @@ static void api_rpc_trans_reply(char *outbuf,
/* all of data was sent: no need to wait for SMBreadX calls */
mem_free_data(p->rhdr .data);
mem_free_data(p->rdata.data);
- mem_free_data(p->rdata_i.data);
+ mem_free_data(p->rdata_i.data);
+ mem_free_data(p->rauth.data);
+ mem_free_data(p->rverf.data);
+ mem_free_data(p->rntlm.data);
}
}
@@ -3281,7 +3284,7 @@ static int api_fd_reply(connection_struct *conn,uint16 vuid,char *outbuf,
}
mem_free_data(pd.data);
-
+
if (!reply)
{
return api_no_reply(outbuf, mdrcnt);