From 1735fc95bba84044d43d4490bd5916d0a52eb876 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 17 Apr 2009 13:55:14 +0000 Subject: Fix memory leak on rehash: opertype used char* instead of std::string git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11309 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index c84bc00d9..15e1ab72b 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -776,7 +776,7 @@ void User::Oper(const std::string &opertype, const std::string &opername) this->AllowedUserModes['o' - 'A'] = true; // Call me paranoid if you want. std::string myclass, mycmd, mypriv; - irc::spacesepstream Classes(iter_opertype->second); + irc::spacesepstream Classes(iter_opertype->second.c_str()); while (Classes.GetToken(myclass)) { operclass_t::iterator iter_operclass = ServerInstance->Config->operclass.find(myclass.c_str()); -- cgit v1.2.3