From 566e5866be407213a93c99a260133f8de16a93b3 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Mon, 6 Mar 2023 03:31:30 +0700 Subject: [PATCH] Fix potential usage of deallocated objects --- .../CoreRealm/Features/Commands/BuiltInCommands/ACommandHelp.uc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/CoreRealm/Features/Commands/BuiltInCommands/ACommandHelp.uc b/sources/CoreRealm/Features/Commands/BuiltInCommands/ACommandHelp.uc index 2c2b7ba..a4ec0f9 100644 --- a/sources/CoreRealm/Features/Commands/BuiltInCommands/ACommandHelp.uc +++ b/sources/CoreRealm/Features/Commands/BuiltInCommands/ACommandHelp.uc @@ -178,6 +178,8 @@ private final function FillCommandToAliasesMap(Feature enabledFeature) InsertIntoAliasesMap(commandName, subcommandName, availableAliases[i]); commandName.FreeSelf(); subcommandName.FreeSelf(); + commandName = none; + subcommandName = none; } // Clean up _.memory.FreeMany(availableAliases);