summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-01 21:06:22 +0200
committerRobin Burchell <robin+git@viroteck.net>2012-07-01 21:16:29 +0200
commit9475a10a86c6c2e8575366f6e0c9b28b66a97698 (patch)
tree38e587a715ebede31602c37fefc24e323d830d53 /src/modules
parent59dc6b0ec277b76996014ea7350b0bcafa5396b5 (diff)
m_xline_db Fix memory leak when adding a loaded xline fails
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_xline_db.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_xline_db.cpp b/src/modules/m_xline_db.cpp
index 20a1a7b14..1918f3fc5 100644
--- a/src/modules/m_xline_db.cpp
+++ b/src/modules/m_xline_db.cpp
@@ -231,6 +231,8 @@ class ModuleXLineDB : public Module
{
ServerInstance->SNO->WriteToSnoMask('x', "database: Added a line of type %s", command_p[1].c_str());
}
+ else
+ delete xl;
}
}