1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Fix a memory leak in os_akill and os_sxline.

This commit is contained in:
Sadie Powell
2024-06-07 22:36:52 +01:00
parent 7861712437
commit 67b76fadca
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -188,7 +188,10 @@ private:
}
if (!akills->CanAdd(source, mask, expires, reason))
{
delete x;
return;
}
EventReturn MOD_RESULT;
FOREACH_RESULT(OnAddXLine, MOD_RESULT, (source, x, akills));
+3
View File
@@ -389,7 +389,10 @@ class CommandOSSNLine final
}
if (!this->xlm()->CanAdd(source, mask, expires, reason))
{
delete x;
return;
}
EventReturn MOD_RESULT;
FOREACH_RESULT(OnAddXLine, MOD_RESULT, (source, x, this->xlm()));