From: Karl Fleischmann Date: Fri, 26 Jan 2024 09:28:43 +0000 (+0100) Subject: lib-smtp: smtp-server-connection - Free local_name on destroy X-Git-Tag: 2.4.0~1814 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc92d61e3a4753be31225ced81ede190dbc71dcd;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: smtp-server-connection - Free local_name on destroy Plug a memory leak introduced by 050bbd4d7e2bd2afee2bfb71a4f87f46ffaf8b94 --- diff --git a/src/lib-smtp/smtp-server-connection.c b/src/lib-smtp/smtp-server-connection.c index bb52ade616..60dd0b3df5 100644 --- a/src/lib-smtp/smtp-server-connection.c +++ b/src/lib-smtp/smtp-server-connection.c @@ -1130,6 +1130,7 @@ bool smtp_server_connection_unref(struct smtp_server_connection **_conn) i_free(conn->username); i_free(conn->session_id); i_free(conn->client_transport); + i_free(conn->local_name); event_unref(&conn->next_trans_event); pool_unref(&conn->pool); return FALSE;