diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-22 15:29:19 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-22 16:47:52 +0100 |
commit | 13400a6589a20452097bc338fa742d834bbd6a34 (patch) | |
tree | 55356a003c790d2cf62b936e4d6503c0a3e3071a /source3/winbindd | |
parent | dd111804f6b22e36fe9753c6f805f0f7ae43af15 (diff) | |
download | samba-13400a6589a20452097bc338fa742d834bbd6a34.tar.gz samba-13400a6589a20452097bc338fa742d834bbd6a34.tar.bz2 samba-13400a6589a20452097bc338fa742d834bbd6a34.zip |
s3: Fix a bad memleak in winbind
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index afb1ba53fa..b04fd5db2b 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -668,7 +668,8 @@ static void wb_request_done(struct tevent_req *req) req, struct winbindd_cli_state); NTSTATUS status; - state->response = talloc_zero(state, struct winbindd_response); + state->response = talloc_zero(state->mem_ctx, + struct winbindd_response); if (state->response == NULL) { DEBUG(0, ("wb_request_done[%d:%s]: talloc_zero failed - removing client\n", (int)state->pid, state->cmd_name)); |