From 3b4c56a69e10223434c6502e60139355b49fbd5e Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 24 Oct 2008 11:17:53 +0000 Subject: [PATCH] Fix a plausible memory leak on rehash, thanks dz. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10698 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/configreader.cpp b/src/configreader.cpp index 50e86f4df..aea422a35 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -982,7 +982,10 @@ void ServerConfig::Read(bool bail, const std::string &useruid) /* Silently ignore boot only values */ if (bootonly && !bail) + { + delete Values[Index].val; continue; + } ConfValue(newconfig, Values[Index].tag, Values[Index].value, Values[Index].default_value, 0, item, MAXBUF, allow_newlines); ValueItem vi(item); -- 2.39.5