Permalink
Browse files

Prevent memory leak

  • Loading branch information...
Bara committed May 4, 2018
1 parent 26e245f commit 3e16a3dfca51ce66d61e7818d4e732da037c10f8
Showing with 2 additions and 0 deletions.
  1. +2 −0 addons/sourcemod/scripting/ttt/ttt.sp
@@ -2094,13 +2094,15 @@ stock void ShowRules(int client, int iItem)
{
SetFailState("Can't read %s correctly! (ImportFromFile)", g_sRulesFile);
delete kvRules;
delete hFile;
return;
}
if (!kvRules.GotoFirstSubKey())
{
SetFailState("Can't read %s correctly! (GotoFirstSubKey)", g_sRulesFile);
delete kvRules;
delete hFile;
return;
}

0 comments on commit 3e16a3d

Please sign in to comment.