1
0
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:
James Booth 2015-08-10 22:18:19 +01:00
parent 0410dd90f1
commit e2a528cad4

View File

@ -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;