diff --git a/rpmio/rpmkeyring.c b/rpmio/rpmkeyring.c index af464f22d..368a1ec13 100644 --- a/rpmio/rpmkeyring.c +++ b/rpmio/rpmkeyring.c @@ -161,7 +161,7 @@ rpmPubkey rpmPubkeyFree(rpmPubkey key) if (--key->nrefs == 0) { pgpDigParamsFree(key->pgpkey); free(key->pkt); - pthread_rwlock_unlock(&keyring->lock); + pthread_rwlock_unlock(&key->lock); pthread_rwlock_destroy(&key->lock); free(key); } else {