From 36e44f2f6fb042fc611a0c8cc15b0a4834350684 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 3 Jul 2022 22:01:51 +0100 Subject: [PATCH] Free the banned struct on SOCK_ClearBans. --- src/i_tcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i_tcp.c b/src/i_tcp.c index d0abb4f9..36740eb8 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -1655,6 +1655,7 @@ static void SOCK_ClearBans(void) { numbans = 0; banned_size = 0; + Z_Free(banned); banned = NULL; }