talons

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

commit ff1794b59bdf1658bc102296dca084335e7295b0
parent 9ed7cc63f9a3c406af09ad13d5038cfe58a35ea9
Author: wwp <subscript@free.fr>
Date:   Mon, 27 Sep 2021 18:10:16 +0200

Fix CID 1491018: resource leak.

Diffstat:
Msrc/procmsg.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/procmsg.c b/src/procmsg.c @@ -781,6 +781,8 @@ static PrefsAccount *procmsg_get_account_from_file(const gchar *file) g_free(buf); buf = NULL; } + if (buf) + g_free(buf); claws_fclose(fp); return mailac; }