Problem: Out of memory condition not always checked

Solution: Use the appropriate assertion macro.
This commit is contained in:
Thomas Braun
2017-03-27 22:57:40 +02:00
parent fe9f6b2837
commit 33e29bd383
7 changed files with 17 additions and 0 deletions

View File

@@ -416,6 +416,7 @@ void zmq::norm_engine_t::recv_data(NormObjectHandle object)
{
// This is a new stream, so create rxState with zmq decoder, etc
rxState = new (std::nothrow) NormRxStreamState(object, options.maxmsgsize);
errno_assert(rxState);
if (!rxState->Init())
{