From: Michael S. Tsirkin Date: Fri, 9 Jan 2026 10:24:34 +0000 (-0500) Subject: send_help: fix FILE* leak in send_help_noexit X-Git-Tag: RELEASE_1_7_1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4dd5956cccd35dfa3d0a689f1819dd48757d439;p=thirdparty%2Fmlmmj.git send_help: fix FILE* leak in send_help_noexit Add missing fclose(mail.fp) after send_single_mail(). The file is opened with fopen() but never closed before returning. Co-Authored-By: Claude Opus 4.5 --- diff --git a/src/send_help.c b/src/send_help.c index cf47ccf5..61aa49bc 100644 --- a/src/send_help.c +++ b/src/send_help.c @@ -45,6 +45,8 @@ send_help_noexit(struct ml *ml, const char *queuefilename, const char *emailaddr save_queue(queuefilename, &mail); else unlink(queuefilename); + if (mail.fp) + fclose(mail.fp); } void