]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-connection - Free local_name on destroy
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Fri, 26 Jan 2024 09:28:43 +0000 (10:28 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 29 Jan 2024 18:49:07 +0000 (18:49 +0000)
Plug a memory leak introduced by
050bbd4d7e2bd2afee2bfb71a4f87f46ffaf8b94

src/lib-smtp/smtp-server-connection.c

index bb52ade6160db2f511cae11138e86ca78f66c569..60dd0b3df54af67f325df8a38aed39239ce017f6 100644 (file)
@@ -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;