X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source3%2Fmodules%2Fvfs_fileid.c;h=cb77a2e52c627e0803c8e837f6ab8c98c76fc77b;hb=12398a2d1ddcd326e02e5d8b0749e0e796145165;hp=5d08fe97d1552068b6b6886d447c65c2eae9efc1;hpb=6619cec3dec8c8a2116d111aea7e5440875d0fa8;p=metze%2Fsamba%2Fwip.git diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c index 5d08fe97d155..cb77a2e52c62 100644 --- a/source3/modules/vfs_fileid.c +++ b/source3/modules/vfs_fileid.c @@ -297,12 +297,14 @@ static int get_connectpath_ino(struct vfs_handle_struct *handle, } ret = SMB_VFS_NEXT_STAT(handle, fname); - TALLOC_FREE(fname); if (ret != 0) { DBG_ERR("stat failed for %s with %s\n", handle->conn->connectpath, strerror(errno)); + TALLOC_FREE(fname); return -1; } + *ino = fname->st.st_ex_ino; + TALLOC_FREE(fname); return 0; }