diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-11-10 23:31:46 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-11-10 23:36:36 +0000 |
commit | 53f5ddbeeb59d8f551bfe0f3039434483ace1ff4 (patch) | |
tree | ffda093d58231ac281d613dfd27ce7f5dd3bd911 /libnetfs | |
parent | 479b6312fb2dc46cd5a096f7ea747a575401f11d (diff) | |
download | hurd-53f5ddbeeb59d8f551bfe0f3039434483ace1ff4.tar.gz hurd-53f5ddbeeb59d8f551bfe0f3039434483ace1ff4.tar.bz2 hurd-53f5ddbeeb59d8f551bfe0f3039434483ace1ff4.zip |
libfshelp: Fix memleak
* libfshelp/fshelp.h (fshelp_rlock_po_fini): New inline function.
* libdiskfs/peropen-rele.c (diskfs_release_peropen): Call fshelp_rlock_po_fini.
* libnetfs/release-peropen.c (netfs_release_peropen): Likewise.
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/release-peropen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnetfs/release-peropen.c b/libnetfs/release-peropen.c index 2ef83183..43f4cba7 100644 --- a/libnetfs/release-peropen.c +++ b/libnetfs/release-peropen.c @@ -39,6 +39,7 @@ netfs_release_peropen (struct peropen *po) mach_port_deallocate (mach_task_self (), po->shadow_root_parent); fshelp_rlock_drop_peropen (&po->lock_status); + fshelp_rlock_po_fini (&po->lock_status); netfs_nput (po->np); |