summaryrefslogtreecommitdiffstats
path: root/source/smbd/ipc.c
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
commitbee11f8889378b9f1cc6e2818fd0f8dd7ddcf10d (patch)
treeaf40525b17025eb538ad7f76c9b6af5206b76d5c /source/smbd/ipc.c
parentf328ae8024584599324ae4263bb9fb89a358279f (diff)
downloadsamba-bee11f8889378b9f1cc6e2818fd0f8dd7ddcf10d.tar.gz
samba-bee11f8889378b9f1cc6e2818fd0f8dd7ddcf10d.tar.xz
samba-bee11f8889378b9f1cc6e2818fd0f8dd7ddcf10d.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.
Diffstat (limited to 'source/smbd/ipc.c')
-rw-r--r--source/smbd/ipc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c
index 5a0bf6ac072..10c859d2666 100644
--- a/source/smbd/ipc.c
+++ b/source/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);