git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae0e63e
)
s3: Fix a bad memleak in winbind
author
Volker Lendecke
<vl@samba.org>
Mon, 22 Mar 2010 14:29:19 +0000
(15:29 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 29 Mar 2010 07:41:05 +0000
(09:41 +0200)
(cherry picked from commit
13400a6589a20452097bc338fa742d834bbd6a34
)
Fix bug #7278 (winbind has a bad memleak).
(cherry picked from commit
75a0354420e5ad8cb668b7602f97e62d1097d720
)
source3/winbindd/winbindd.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd.c
b/source3/winbindd/winbindd.c
index f3c269731d8375066bc714ad874941652cc66d93..300c78e356ebdac41261fcf709f27ab6775eafcd 100644
(file)
--- a/
source3/winbindd/winbindd.c
+++ b/
source3/winbindd/winbindd.c
@@
-644,7
+644,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));