1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r23823: Memory leak fix from Atsushi Nakabayashi <nakabayashi@miraclelinux.com>

Thanks!

Volker
This commit is contained in:
Volker Lendecke 2007-07-11 06:18:32 +00:00 committed by Gerald (Jerry) Carter
parent 9794b94ebf
commit 17b875ae5b

View File

@ -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));