Fix core build failure with GCC 8

GCC 8 warns when a polymorphic type is caught by value.
This commit is contained in:
Markus Mäkelä 2018-04-17 22:17:34 +03:00
parent c928cf6331
commit 1cc99d2fda
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1418,7 +1418,7 @@ bool session_delay_routing(MXS_SESSION* session, MXS_DOWNSTREAM down, GWBUF* buf
success = true;
}
catch (std::bad_alloc)
catch (std::bad_alloc&)
{
MXS_OOM();
}