Don't early delete the share mode tdb data
authorVolker Lendecke <vl@samba.org>
Sat, 12 Jan 2008 22:06:33 +0000 (23:06 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 12 Jan 2008 22:57:12 +0000 (23:57 +0100)
We now refer directly to the file name in the tdb data, so don't delete it.
(This used to be commit 71de4946cf00cf8b7bb2f2d92832166bee12e84a)

source3/locking/locking.c

index bae4518575452d0ce9834a1f97e64134f90a2c81..513bb31d9da7b4e34aa24a43a24c4525d7f0e5f8 100644 (file)
@@ -836,8 +836,6 @@ struct share_mode_lock *fetch_share_mode_unlocked(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
-       TALLOC_FREE(data.dptr);
-
        return lck;
 }