Fix the double free that just got added. There was only half a memory leak...
It was a cut and paste error, not a real memory leak.edge.strict_endians
parent
6691212129
commit
151d0ecb61
|
@ -79,10 +79,10 @@ ntfs_volume *ntfs_volume_alloc(void)
|
|||
*/
|
||||
static void __ntfs_volume_release(ntfs_volume *v)
|
||||
{
|
||||
if (v->vol_ni && NInoDirty(v->vol_ni))
|
||||
ntfs_inode_close(v->vol_ni);
|
||||
if (v->lcnbmp_ni && NInoDirty(v->lcnbmp_ni))
|
||||
ntfs_inode_sync(v->lcnbmp_ni);
|
||||
if (v->vol_ni)
|
||||
ntfs_inode_close(v->vol_ni);
|
||||
if (v->lcnbmp_na)
|
||||
ntfs_attr_close(v->lcnbmp_na);
|
||||
if (v->lcnbmp_ni)
|
||||
|
@ -101,8 +101,6 @@ static void __ntfs_volume_release(ntfs_volume *v)
|
|||
ntfs_attr_close(v->mftmirr_na);
|
||||
if (v->mftmirr_ni)
|
||||
ntfs_inode_close(v->mftmirr_ni);
|
||||
if (v->vol_ni)
|
||||
ntfs_inode_close(v->vol_ni);
|
||||
if (v->dev) {
|
||||
struct ntfs_device *dev = v->dev;
|
||||
|
||||
|
|
Loading…
Reference in New Issue