build_dentry_tree_ntfs(): Free memory for $Secure
authorEric Biggers <ebiggers3@gmail.com>
Wed, 19 Dec 2012 05:27:18 +0000 (23:27 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 19 Dec 2012 05:27:33 +0000 (23:27 -0600)
src/ntfs-capture.c

index a5ce6df..b06bc9c 100644 (file)
@@ -722,6 +722,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'",