mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
discon getparentvcache leak fix
don't leak an unref'd vcache pointer if we are returning an error (EAGAIN). thanks to Simon Wilkinson for catching this. Change-Id: I40c5aa0fd50e1f2c76b09ba073a7109bca706d8c Reviewed-on: http://gerrit.openafs.org/2511 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
9bfae6b76c
commit
85e29294ee
@ -531,8 +531,10 @@ afs_GetParentVCache(struct vcache *avc, int deleted, struct VenusFid *afid,
|
|||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (code && *adp)
|
if (code && *adp) {
|
||||||
afs_PutVCache(*adp);
|
afs_PutVCache(*adp);
|
||||||
|
*adp = NULL;
|
||||||
|
}
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user