From 494003fb67ea433b1da07898a3bf6c5e0c3152ce Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Aug 2012 13:42:51 +0200 Subject: 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(+) (limited to 'source3/lib') diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index d505b6bea6..f7fe3db731 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; } -- cgit