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:
parent
55d94f8153
commit
5d4cebecf9
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user