Skip to content

Commit

Permalink
playing.cxx: if you malloc then free
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Dec 11, 2024
1 parent 7008203 commit 0736ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bzflag/playing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void joinGame()
}
if (worldDatabase)
{
delete[] worldDatabase;
free(worldDatabase);
worldDatabase = NULL;
}
HUDDialogStack::get()->setFailedMessage("Download stopped by user action");
Expand Down

0 comments on commit 0736ae1

Please sign in to comment.