msg-crypto: fix small leak
This commit is contained in:
@ -218,11 +218,11 @@ get_signers (GHashTable *signerhash)
|
|||||||
static MuMsgPartSigStatusReport*
|
static MuMsgPartSigStatusReport*
|
||||||
get_status_report (GMimeSignatureList *sigs)
|
get_status_report (GMimeSignatureList *sigs)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
MuMsgPartSigStatus status;
|
MuMsgPartSigStatus status;
|
||||||
MuMsgPartSigStatusReport *status_report;
|
MuMsgPartSigStatusReport *status_report;
|
||||||
char *report;
|
char *report;
|
||||||
GHashTable *signerhash;
|
GHashTable *signerhash;
|
||||||
|
|
||||||
status = MU_MSG_PART_SIG_STATUS_GOOD; /* let's start positive! */
|
status = MU_MSG_PART_SIG_STATUS_GOOD; /* let's start positive! */
|
||||||
signerhash = g_hash_table_new (g_str_hash, g_str_equal);
|
signerhash = g_hash_table_new (g_str_hash, g_str_equal);
|
||||||
@ -313,7 +313,7 @@ mu_msg_crypto_verify_part (GMimeMultipartSigned *sig, MuMsgOptions opts,
|
|||||||
}
|
}
|
||||||
|
|
||||||
report = get_status_report (sigs);
|
report = get_status_report (sigs);
|
||||||
g_mime_signature_list_clear (sigs);
|
g_clear_object (&sigs);
|
||||||
|
|
||||||
/* tag this part with the signature status check */
|
/* tag this part with the signature status check */
|
||||||
tag_with_sig_status(G_OBJECT(sig), report);
|
tag_with_sig_status(G_OBJECT(sig), report);
|
||||||
|
|||||||
Reference in New Issue
Block a user