зеркало из https://github.com/mozilla/gecko-dev.git
key should be freed when refcount == 0 after decrement. See bug 126087.
This commit is contained in:
Родитель
3a5f38632b
Коммит
a07c97c4aa
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче