summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-05-19 18:31:17 +0200
committerJeremy Allison <jra@samba.org>2018-06-16 01:06:36 +0200
commitb394026f478b038e734fd3952909c6337fbb5721 (patch)
tree5ef0fe81686353c30acc198e05184aa293e0e0c8 /source3/winbindd
parent73b183e1382117f35033bbe65316d30b966e9032 (diff)
downloadsamba-b394026f478b038e734fd3952909c6337fbb5721.tar.gz
winbindd: Do an early TALLOC_FREE
Leave the if-block without leaking Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_ping_dc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_ping_dc.c b/source3/winbindd/winbindd_ping_dc.c
index c1a0a7b0ec6..374781902fd 100644
--- a/source3/winbindd/winbindd_ping_dc.c
+++ b/source3/winbindd/winbindd_ping_dc.c
@@ -70,6 +70,8 @@ struct tevent_req *winbindd_ping_dc_send(TALLOC_CTX *mem_ctx,
}
state->dcname = talloc_asprintf(state, "%s.%s", h, d);
+ TALLOC_FREE(h);
+
if (tevent_req_nomem(state->dcname, req)) {
return tevent_req_post(req, ev);
}