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

This commit is contained in:
ian.mcgreer%sun.com 2002-04-11 19:15:31 +00:00
Родитель 3a5f38632b
Коммит a07c97c4aa
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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) {