mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
remove-vnop-mem-leak-20060110
avoid leaking mvid when we use .__afsXXXX renaming in remove
This commit is contained in:
parent
39b23a0dc1
commit
8a1d347b2e
@ -393,7 +393,12 @@ afs_remove(OSI_VC_ARG(adp), aname, acred)
|
||||
code = afsrename(adp, aname, adp, unlname, acred, &treq);
|
||||
Tnam1 = unlname;
|
||||
if (!code) {
|
||||
char *oldmvid = NULL;
|
||||
if (tvc->mvid)
|
||||
oldmvid = tvc->mvid;
|
||||
tvc->mvid = (struct VenusFid *)unlname;
|
||||
if (oldmvid)
|
||||
osi_FreeSmallSpace(oldmvid);
|
||||
crhold(acred);
|
||||
if (tvc->uncred) {
|
||||
crfree(tvc->uncred);
|
||||
|
Loading…
Reference in New Issue
Block a user