-/*-
- * Copyright 2019 Vsevolod Stakhov
+/*
+ * Copyright 2025 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
rspamd_http_entry_free(struct rspamd_http_connection_entry *entry)
{
if (entry != NULL) {
- close(entry->conn->fd);
rspamd_http_connection_unref(entry->conn);
if (entry->rt->finish_handler) {
entry->rt->finish_handler(entry);
}
DL_DELETE(entry->rt->conns, entry);
+ close(entry->conn->fd);
g_free(entry);
}
}