summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/release-peropen.c2
-rw-r--r--libnetfs/release-protid.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libnetfs/release-peropen.c b/libnetfs/release-peropen.c
index c5565b23..4fc0b45e 100644
--- a/libnetfs/release-peropen.c
+++ b/libnetfs/release-peropen.c
@@ -28,7 +28,7 @@ netfs_release_peropen (struct peropen *po)
mutex_unlock (&po->np->lock);
else
{
- mach_port_deallocate (mach_task_self (), dotdotport);
+ mach_port_deallocate (mach_task_self (), po->dotdotport);
netfs_nput (po->np);
free (po);
}
diff --git a/libnetfs/release-protid.c b/libnetfs/release-protid.c
index 3432a765..3585021f 100644
--- a/libnetfs/release-protid.c
+++ b/libnetfs/release-protid.c
@@ -23,7 +23,7 @@
void
netfs_release_protid (void *arg)
{
- struct protid *user;
+ struct protid *user = arg;
netfs_drop_credential (user->credential);
if (user->shared_object)