talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ced627e7504468adcde5011f1280aaea626fe79c
parent 08acbbba350c2f83ee798c162ca54dcdd0be2f62
Author: wwp <subscript@free.fr>
Date:   Tue, 28 Sep 2021 16:54:22 +0200

Fix CID 1492282, 1492283: double free.

Diffstat:
Msrc/plugins/smime/smime.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c @@ -849,9 +849,6 @@ gboolean smime_encrypt(MimeInfo *mimeinfo, const gchar *encrypt_data) FILE_OP_ERROR(tmpfile, "claws_fwrite"); claws_fclose(fp); claws_unlink(tmpfile); - g_free(tmpfile); - g_free(enccontent); - g_free(tmpfile); } if (claws_safe_fclose(fp) == EOF) { FILE_OP_ERROR(tmpfile, "claws_fclose");