diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index 42c570b54b3..37d76e22ff6 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -321,6 +321,16 @@ static int xattr_tdb_fremovexattr(struct vfs_handle_struct *handle, return ret; } +/* + * Destructor for the VFS private data + */ + +static void close_xattr_db(void **data) +{ + struct db_context **p_db = (struct db_context **)data; + TALLOC_FREE(*p_db); +} + /* * Open the tdb file upon VFS_CONNECT */ @@ -568,16 +578,6 @@ static int xattr_tdb_unlinkat(vfs_handle_struct *handle, return ret; } -/* - * Destructor for the VFS private data - */ - -static void close_xattr_db(void **data) -{ - struct db_context **p_db = (struct db_context **)data; - TALLOC_FREE(*p_db); -} - static int xattr_tdb_connect(vfs_handle_struct *handle, const char *service, const char *user) {