X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fntfs-apply.c;h=d6271f79094795d12a4788ee646f8aca0be814a0;hb=e9ea88602558419972b935f1c68ea80119c924ef;hp=6409472a3c866d1ee5a8ea0055a4390ee2d68ee1;hpb=7dd8632ac399b726ea1e414bbfab97b6554fe5d8;p=wimlib diff --git a/src/ntfs-apply.c b/src/ntfs-apply.c index 6409472a..d6271f79 100644 --- a/src/ntfs-apply.c +++ b/src/ntfs-apply.c @@ -442,8 +442,10 @@ static int do_wim_apply_dentry_ntfs(struct dentry *dentry, ntfs_inode *dir_ni, /* 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; + } } }