mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Free pgp key on connect
This commit is contained in:
parent
0410dd90f1
commit
e2a528cad4
@ -146,9 +146,11 @@ p_gpg_on_connect(const char * const barejid)
|
||||
if (gerr) {
|
||||
log_error("Error loading PGP key id for %s", jid);
|
||||
g_error_free(gerr);
|
||||
g_free(keyid);
|
||||
} else {
|
||||
gpgme_key_t key = NULL;
|
||||
error = gpgme_get_key(ctx, keyid, &key, 1);
|
||||
g_free(keyid);
|
||||
if (error || key == NULL) {
|
||||
log_error("GPG: Failed to get key. %s %s", gpgme_strsource(error), gpgme_strerror(error));
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user