From 9475a10a86c6c2e8575366f6e0c9b28b66a97698 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 1 Jul 2012 21:06:22 +0200 Subject: m_xline_db Fix memory leak when adding a loaded xline fails --- src/modules/m_xline_db.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules') 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; } } -- cgit v1.2.3