The following bug has been SUBMITTED. ====================================================================== http://www.dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000214 ====================================================================== Reported By: mavetju Assigned To: ====================================================================== Project: DBMail Bug ID: 214 Category: Command-Line programs (dbmail-users, dbmail-util) Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 05-Jun-05 10:11 CEST Last Modified: 05-Jun-05 10:11 CEST ====================================================================== Summary: dbmail-smtp dumps core with double free Description: While trying to figure out why a certain message stayed in the queue, the following error was detected:
<pre> trace(TRACE_ERROR, "%s,%s splitmessage failed", __FILE__, __func__); dm_free(whole_message); exitcode = EX_TEMPFAIL; goto freeall; [...] freeall: [...] trace(TRACE_DEBUG, "main(): freeing memory blocks"); if (header != NULL) dm_free(header); if (whole_message != NULL) dm_free(whole_message); </pre> whole_message is double freed when splitmessage failed. ====================================================================== Bug History Date Modified Username Field Change ====================================================================== 05-Jun-05 10:11mavetju New Bug 05-Jun-05 10:11mavetju File Added: doublefree.patch ======================================================================