Windows: Correct refcount leak

The new duplicate avoidance code in cm_QueueBKGRequest() leaked
a cm_scache_t and a cm_user_t reference count.

Change-Id: Iceaf32a8d20cf350024fe40e3185c723f6203676
Reviewed-on: http://gerrit.openafs.org/7365
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-05-07 00:56:11 -04:00 committed by Jeffrey Altman
parent 6da91dfcb8
commit 542dad7573

View File

@ -313,6 +313,8 @@ void cm_QueueBKGRequest(cm_scache_t *scp, cm_bkgProc_t *procp, afs_uint32 p1, af
lock_ReleaseWrite(&cm_daemonLockp[daemonID]); lock_ReleaseWrite(&cm_daemonLockp[daemonID]);
if (duplicate) { if (duplicate) {
cm_ReleaseSCache(scp);
cm_ReleaseUser(userp);
free(rp); free(rp);
} else { } else {
osi_Wakeup((LONG_PTR) &cm_bkgListpp[daemonID]); osi_Wakeup((LONG_PTR) &cm_bkgListpp[daemonID]);