DEVEL15-windows-scache-ref-leak-20061002
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Oct 2006 03:30:20 +0000 (03:30 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Oct 2006 03:30:20 +0000 (03:30 +0000)
when handling VNOVNODE must release the scache entry.

(cherry picked from commit 62e5dab3d6ea8105cec253b45cef3ebcc0da1930)

src/WINNT/afsd/cm_conn.c

index 3a48fea..f47abc1 100644 (file)
@@ -440,6 +440,7 @@ cm_Analyze(cm_conn_t *connp, cm_user_t *userp, cm_req_t *reqp,
 
                lock_ObtainWrite(&cm_scacheLock);
                cm_RecycleSCache(scp, CM_SCACHE_RECYCLEFLAG_DESTROY_BUFFERS);
+               cm_ReleaseSCacheNoLock(scp);
                lock_ReleaseWrite(&cm_scacheLock);
 
                if (pscp) {