From: Baptiste Daroussin Date: Fri, 27 Mar 2026 07:36:50 +0000 (+0100) Subject: plug memory leak and fix naming collision X-Git-Tag: RELEASE_2_0_0~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad7f797728b0dfaa9ebf09314c033d4c2fcbdb75;p=thirdparty%2Fmlmmj.git plug memory leak and fix naming collision --- diff --git a/src/listcontrol.c b/src/listcontrol.c index 44f421ef..438fc262 100644 --- a/src/listcontrol.c +++ b/src/listcontrol.c @@ -403,7 +403,9 @@ int listcontrol(strlist *fromemails, struct ml *ml, const char *controlstr, } else { *c++ = '\0'; } - bret = bouncemail(ml->fd, lowercase(c), bouncenr); + char *lowered = lowercase(c); + bret = bouncemail(ml->fd, lowered, bouncenr); + free(lowered); if (bret == BOUNCE_DONE) save_lastbouncedmsg(ml->fd, c, mailname); if (bret == BOUNCE_FAIL)