The branch, v4-7-test has been updated via d6ac540 nsswitch: fix memory leak in winbind_open_pipe_sock() when the privileged pipe is not accessable. from 825aea7 s4:rpc_server: fix call_id truncation in dcesrv_find_fragmented_call()
https://git.samba.org/?p=samba.git;a=shortlog;h=v4-7-test - Log ----------------------------------------------------------------- commit d6ac5408f7c4d2fc0bb648a302bc012b725bec41 Author: Stefan Metzmacher <me...@samba.org> Date: Tue Apr 24 10:59:05 2018 +0200 nsswitch: fix memory leak in winbind_open_pipe_sock() when the privileged pipe is not accessable. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13400 Signed-off-by: Stefan Metzmacher <me...@samba.org> Reviewed-by: Volker Lendecke <v...@samba.org> (cherry picked from commit ffe970007bf934955f72ec2d73bf8f94a2b796eb) Autobuild-User(v4-7-test): Stefan Metzmacher <me...@samba.org> Autobuild-Date(v4-7-test): Wed May 2 15:36:48 CEST 2018 on sn-devel-144 ----------------------------------------------------------------------- Summary of changes: nsswitch/wb_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c index 262181a..336092b 100644 --- a/nsswitch/wb_common.c +++ b/nsswitch/wb_common.c @@ -420,14 +420,14 @@ static int winbind_open_pipe_sock(struct winbindd_context *ctx, ctx->winbindd_fd = fd; ctx->is_privileged = 1; } + + SAFE_FREE(response.extra_data.data); } if ((need_priv != 0) && (ctx->is_privileged == 0)) { return -1; } - SAFE_FREE(response.extra_data.data); - return ctx->winbindd_fd; #else return -1; -- Samba Shared Repository