From 494003fb67ea433b1da07898a3bf6c5e0c3152ce Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Aug 2012 13:42:51 +0200 Subject: [PATCH] s3-g_lock: Properly free "rec" on retry to avoid deadlock Signed-off-by: Christian Ambach --- source3/lib/g_lock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index d505b6bea63..f7fe3db7318 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -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; } -- 2.11.4.GIT