]> git.ipfire.org Git - thirdparty/mlmmj.git/commit
mlmmj-process: clean up queue file on second do_all_the_voodoo_here failure 86/head
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Feb 2026 22:24:33 +0000 (17:24 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 17 Feb 2026 15:17:11 +0000 (10:17 -0500)
commit6d0d8b713d9b8519f8ae882217a3d682d9d7ed24
tree179c9de7280a00710ad71022dcc466fbf4f124a8
parent1940f4a68ce30b7bf0271dfb65a2b1cd86b5bfd6
mlmmj-process: clean up queue file on second do_all_the_voodoo_here failure

The owner-forwarding path re-opens donemailname with O_TRUNC and calls
do_all_the_voodoo_here a second time. If this call fails, the truncated
queue file is left behind. Add unlink(donemailname) and free(donemailname)
to match the cleanup already done at the first call site.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
src/mlmmj-process.c