]> git.ipfire.org Git - thirdparty/mlmmj.git/commit
mlmmj-process: address TODO to free parsed headers 77/head
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 7 Jan 2026 09:13:35 +0000 (04:13 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 7 Jan 2026 12:52:27 +0000 (07:52 -0500)
commit5599d0e9919dfdd59123330347aebea77cb03440
treef7d772127d87bf53d8e5987af1d5eab520e4c39e
parent0cc2355eab0fe043df2bf63452f1fbb9d37abc87
mlmmj-process: address TODO to free parsed headers

Add free_parsed_hdrs() helper to free readhdrs and all strlist
variables (fromemails, toemails, ccemails, etc.) before exit.

This is a cosmetic fix since mlmmj-process is a short-lived
executable that exits immediately after processing, so the OS
reclaims all memory anyway. However, it improves code hygiene
and removes the XXX comment.

Fixes: 4059b78 ("do_all_the_voodo_here introducton plus a massive cleanup")
src/mlmmj-process.c