]> git.ipfire.org Git - thirdparty/git.git/commit
imap-send: fix leaking memory in `imap_server_conf`
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Jun 2024 06:39:22 +0000 (08:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jun 2024 17:30:55 +0000 (10:30 -0700)
commit6d1f198f346fb218e06e730bac28609aa402a648
treed2aadaaaa93a93653019c6356c8076c56ed2c295
parentcea1ff7f1fb65daaf1059bdc0e5b65e2a2e3b89b
imap-send: fix leaking memory in `imap_server_conf`

We never free any of the config strings that we populate into the
`struct imap_server_conf`. Fix this by creating a common exit path where
we can free resources.

While at it, drop the unused member `imap_server_conf::name`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c