diff --git a/src/afs/afs_disconnected.c b/src/afs/afs_disconnected.c index a83d076de1..692dcbcd33 100644 --- a/src/afs/afs_disconnected.c +++ b/src/afs/afs_disconnected.c @@ -702,7 +702,8 @@ afs_ProcessOpCreate(struct vcache *avc, struct vrequest *areq, ttargetName = afs_osi_Alloc(tlen); if (!ttargetName) { afs_PutDCache(tdc); - return ENOMEM; + code = ENOMEM; + goto end; } ObtainReadLock(&tdc->lock); tfile = afs_CFileOpen(&tdc->f.inode);