From 0736ae13b5cc91bbf07a2947c44dab61f3656319 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 11 Dec 2024 19:17:59 +0100 Subject: [PATCH] playing.cxx: if you malloc then free --- src/bzflag/playing.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bzflag/playing.cxx b/src/bzflag/playing.cxx index a7b0291a5d..68d11564c9 100644 --- a/src/bzflag/playing.cxx +++ b/src/bzflag/playing.cxx @@ -526,7 +526,7 @@ void joinGame() } if (worldDatabase) { - delete[] worldDatabase; + free(worldDatabase); worldDatabase = NULL; } HUDDialogStack::get()->setFailedMessage("Download stopped by user action");