Skip to content
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Jul 28, 2017
1 parent 0fc5f2a commit 9f7967e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified plugins/discord.smx
Binary file not shown.
2 changes: 2 additions & 0 deletions scripting/discord.sp
Expand Up @@ -121,6 +121,7 @@ bool GetChannelWebHook(const char[] channel, char[] webhook, int length)
if (!kv.GotoFirstSubKey())
{
SetFailState("[GetChannelWebHook] Can't find a channel in \"%s\"!", sFile);
delete kv;
return false;
}

Expand All @@ -133,6 +134,7 @@ bool GetChannelWebHook(const char[] channel, char[] webhook, int length)
if(StrEqual(sChannel, channel, false))
{
kv.GetString("url", webhook, length);
delete kv;
return true;
}
}
Expand Down

0 comments on commit 9f7967e

Please sign in to comment.