summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-11 06:18:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:30 -0500
commit0ff8556f8b9e641c6e9e06857d72f4cd28a186fb (patch)
tree6804d19699c474ccafa0c07a1469291143831f1e /source3/smbd
parentd775ad4aba485e00066eef3d1c44929541c4ce61 (diff)
downloadsamba-0ff8556f8b9e641c6e9e06857d72f4cd28a186fb.tar.gz
samba-0ff8556f8b9e641c6e9e06857d72f4cd28a186fb.tar.bz2
samba-0ff8556f8b9e641c6e9e06857d72f4cd28a186fb.zip
r23823: Memory leak fix from Atsushi Nakabayashi <nakabayashi@miraclelinux.com>
Thanks! Volker (This used to be commit 17b875ae5bab9473f0f896e63fff4a65588c2fb8)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index c2b780ae74..769147926f 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -603,6 +603,8 @@ int reply_trans(connection_struct *conn,
DEBUG(0,("reply_trans: setup malloc fail for %u "
"bytes !\n", (unsigned int)
(state->setup_count * sizeof(uint16))));
+ SAFE_FREE(state->data);
+ SAFE_FREE(state->param);
TALLOC_FREE(state);
END_PROFILE(SMBtrans);
return(ERROR_DOS(ERRDOS,ERRnomem));