http://bugzilla.spamassassin.org/show_bug.cgi?id=4028
Summary: memleak in libspamc.c
Product: Spamassassin
Version: 3.0.1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
There seems to be a leak in libspamc.c (from the 3.0.1 tarball),
line 1090:
void message_cleanup(struct message *m)
{
if (m->out != NULL && m->pre != NULL && m->out != m->pre+m->pre_len)
free(m->out);
...
}
In non-BSMTP mode, m->pre is NULL, so m->out does never get freed
(I couldnt find a reason for those checks in the bsmtp part, so
I think it should be omitted completely - but you probably know
better).
I guess it should read:
if (m->out != NULL)
free(m->out);
Btw., I don't know if the leak has an effect in the spamassassin
distribution, we use libspamc in a plugin for sylpheed-claws,
thats where I found the problem.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.