X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fntfs-capture.c;h=8f123f805a9afb4d10d035fbac8aeea98c617521;hp=a5ce6dfa9b14b4b4ecefa4c4e888763e8d827d4e;hb=b3d65ccab09cc7f33380cb5bf43709349d079087;hpb=eb61b7cad6d1eef756d6e6d08c62af1294cd5ebb diff --git a/src/ntfs-capture.c b/src/ntfs-capture.c index a5ce6dfa..8f123f80 100644 --- a/src/ntfs-capture.c +++ b/src/ntfs-capture.c @@ -474,7 +474,6 @@ static int wim_ntfs_capture_filldir(void *dirent, const ntfschar *name, ntfs_inode_close(ni); out_free_utf8_name: FREE(utf8_name); -out: return ret; } @@ -722,6 +721,10 @@ out_cleanup: destroy_sd_set(&sd_set); out: + ntfs_index_ctx_put(vol->secure_xsii); + ntfs_index_ctx_put(vol->secure_xsdh); + ntfs_inode_close(vol->secure_ni); + if (ret) { if (ntfs_umount(vol, FALSE) != 0) { ERROR_WITH_ERRNO("Failed to unmount NTFS volume `%s'",