summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-24 11:17:53 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-24 11:17:53 +0000
commit3b4c56a69e10223434c6502e60139355b49fbd5e (patch)
treeacf6a15859c76695bc6cd8bfe85055bd13cd4401 /src
parent9175a3799dbf1e0809fb1bb540ca715243c0be2a (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp3
1 files changed, 3 insertions, 0 deletions
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);