key should be freed when refcount == 0 after decrement. See bug 126087.

git-svn-id: svn://10.0.0.236/trunk@118779 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ian.mcgreer%sun.com 2002-04-11 19:15:31 +00:00
parent 55d94f8153
commit 5d4cebecf9

View File

@ -249,7 +249,7 @@ PK11_FreeSymKey(PK11SymKey *symKey)
PK11SlotInfo *slot;
PRBool freeit = PR_TRUE;
if (PR_AtomicDecrement(&symKey->refCount) == -1) {
if (PR_AtomicDecrement(&symKey->refCount) == 0) {
destroy= PR_TRUE;
}
if (destroy) {