Skip to content

Commit

Permalink
lmtp: Fix memory leak by unreferencing duplicated settings parser
Browse files Browse the repository at this point in the history
Broken by 8807ff0
  • Loading branch information
sirainen authored and cmouse committed Dec 7, 2022
1 parent 1f68109 commit 3cb91e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lmtp/lmtp-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static void client_read_settings(struct client *client, bool ssl)

set_parser = settings_parser_dup(set_parser, client->pool);
lmtp_settings_get(set_parser, client->pool, &lmtp_set, &lda_set);
settings_parser_unref(&set_parser);
const struct var_expand_table *tab =
mail_storage_service_get_var_expand_table(storage_service, &input);
if (settings_var_expand(&lmtp_setting_parser_info, lmtp_set,
Expand Down

0 comments on commit 3cb91e1

Please sign in to comment.