1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

s3-g_lock: Properly free "rec" on retry to avoid deadlock

Signed-off-by: Christian Ambach <ambi@samba.org>
This commit is contained in:
Volker Lendecke 2012-08-10 13:42:51 +02:00 committed by Christian Ambach
parent 7c56d80bee
commit 494003fb67

View File

@ -259,6 +259,7 @@ static void g_lock_lock_retry(struct tevent_req *subreq)
}
subreq = dbwrap_record_watch_send(state, state->ev, rec,
state->ctx->msg);
TALLOC_FREE(rec);
if (tevent_req_nomem(subreq, req)) {
return;
}