]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a plausible memory leak on rehash, thanks dz.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 24 Oct 2008 11:17:53 +0000 (11:17 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 24 Oct 2008 11:17:53 +0000 (11:17 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10698 e03df62e-2008-0410-955e-edbf42e46eb7

src/configreader.cpp

index 50e86f4df3c4b4c64f85358aa7bfb0dfffa579f0..aea422a3578c5e94f84c6d51e975d14975f56e57 100644 (file)
@@ -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);