From f93dcf4fa3301f2e461db86e25c3f9cad0f585ef Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 12:01:23 +0000 Subject: bad_alloc is thrown by reference not by value git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4830 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4dc8cf03c..9f38eec7e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -967,7 +967,7 @@ int main(int argc, char** argv) ServerInstance->Run(); DELETE(ServerInstance); } - catch (std::bad_alloc) + catch (std::bad_alloc&) { log(SPARSE,"You are out of memory! (got exception std::bad_alloc!)"); ServerInstance->SendError("**** OUT OF MEMORY **** We're gonna need a bigger boat!"); -- cgit v1.3.1-10-gc9f91