From: Volker Lendecke Date: Fri, 10 Aug 2012 11:42:51 +0000 (+0200) Subject: s3-g_lock: Properly free "rec" on retry to avoid deadlock X-Git-Tag: tevent-0.9.17~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=494003fb67ea433b1da07898a3bf6c5e0c3152ce;p=thirdparty%2Fsamba.git s3-g_lock: Properly free "rec" on retry to avoid deadlock Signed-off-by: Christian Ambach --- 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; }