Fix the talloc heirarchy when adding the unix delete token.
authorJeremy Allison <jra@samba.org>
Fri, 6 Apr 2012 21:53:48 +0000 (14:53 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 7 May 2012 13:09:05 +0000 (15:09 +0200)
source3/locking/locking.c

index ddd469de289f27df9c53310a3c00af17c9b9b6ce..02622d62019265dce3fe9d6f4f8f4f40609f7da6 100644 (file)
@@ -1518,7 +1518,7 @@ static bool add_delete_on_close_token(struct share_mode_lock *lck,
        }
 
        dtl->name_hash = name_hash;
-       dtl->delete_token = copy_unix_token(lck, tok);
+       dtl->delete_token = copy_unix_token(dtl, tok);
        if (dtl->delete_token == NULL) {
                TALLOC_FREE(dtl);
                return false;