summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-08-10 13:42:51 +0200
committerChristian Ambach <ambi@samba.org>2012-08-16 18:05:34 +0200
commit494003fb67ea433b1da07898a3bf6c5e0c3152ce (patch)
treefee0fae6226e20fab7a5846a20aa0da72c060368 /source3
parent7c56d80bee60895391fdec3f8f3f11d38a492190 (diff)
downloadsamba-494003fb67ea433b1da07898a3bf6c5e0c3152ce.tar.gz
samba-494003fb67ea433b1da07898a3bf6c5e0c3152ce.tar.bz2
samba-494003fb67ea433b1da07898a3bf6c5e0c3152ce.zip
s3-g_lock: Properly free "rec" on retry to avoid deadlock
Signed-off-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/g_lock.c1
1 files changed, 1 insertions, 0 deletions
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;
}