WIMStruct *w;
};
-
-#if 0
-extern int ntfs_set_inode_security(ntfs_inode *ni, u32 selection,
- const char *attr);
-extern int ntfs_set_inode_attributes(ntfs_inode *ni, u32 attrib);
-#endif
-
/*
* Extracts a WIM resource to a NTFS attribute.
*/
/* Can't make a hard link; extract the file itself */
FREE(inode->extracted_file);
inode->extracted_file = STRDUP(dentry->full_path_utf8);
- if (!inode->extracted_file)
- return WIMLIB_ERR_NOMEM;
+ if (!inode->extracted_file) {
+ ret = WIMLIB_ERR_NOMEM;
+ goto out_close_dir_ni;
+ }
}
}