diff options
Diffstat (limited to 'libdiskfs/peropen-rele.c')
-rw-r--r-- | libdiskfs/peropen-rele.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/peropen-rele.c b/libdiskfs/peropen-rele.c index 4030c3e0..4b90aef5 100644 --- a/libdiskfs/peropen-rele.c +++ b/libdiskfs/peropen-rele.c @@ -33,7 +33,7 @@ diskfs_release_peropen (struct peropen *po) if (po->root_parent) mach_port_deallocate (mach_task_self (), po->root_parent); - if (po->shadow_root) + if (po->shadow_root && po->shadow_root != po->np) { mutex_lock (&po->shadow_root->lock); diskfs_nput (po->shadow_root); |