diff options
author | Volker Lendecke <vl@samba.org> | 2012-08-10 13:42:51 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-08-16 18:05:34 +0200 |
commit | 494003fb67ea433b1da07898a3bf6c5e0c3152ce (patch) | |
tree | fee0fae6226e20fab7a5846a20aa0da72c060368 | |
parent | 7c56d80bee60895391fdec3f8f3f11d38a492190 (diff) | |
download | samba-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>
-rw-r--r-- | source3/lib/g_lock.c | 1 |
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; } |