@@ -381,8 +381,8 @@ bmqt::GenericResult::Enum Application::startChannel()
381381 bsls::TimeInterval attemptInterval;
382382 attemptInterval.setTotalMilliseconds (k_RECONNECT_INTERVAL_MS);
383383
384- bmqio::Status status;
385- bmqio::ConnectOptions options;
384+ bmqio::Status status (&d_allocator) ;
385+ bmqio::ConnectOptions options (&d_allocator) ;
386386 options.setEndpoint (out.str ())
387387 .setNumAttempts (k_RECONNECT_COUNT)
388388 .setAttemptInterval (attemptInterval)
@@ -392,12 +392,13 @@ bmqt::GenericResult::Enum Application::startChannel()
392392 &status,
393393 &d_connectHandle_mp,
394394 options,
395- bdlf::BindUtil::bind (&Application::channelStateCallback,
396- this ,
397- options.endpoint (),
398- bdlf::PlaceHolders::_1, // event
399- bdlf::PlaceHolders::_2, // status
400- bdlf::PlaceHolders::_3)); // channel
395+ bdlf::BindUtil::bindS (&d_allocator,
396+ &Application::channelStateCallback,
397+ this ,
398+ options.endpoint (),
399+ bdlf::PlaceHolders::_1, // event
400+ bdlf::PlaceHolders::_2, // status
401+ bdlf::PlaceHolders::_3)); // channel
401402 if (!status) {
402403 BALL_LOG_ERROR << id () << " Failed to connect to broker at '"
403404 << d_sessionOptions.brokerUri ()
@@ -453,7 +454,7 @@ void Application::printStats(bool isFinal)
453454 // executed by the *SCHEDULER* thread
454455 // (and by the *MAIN* thread (in destructor))
455456
456- bmqu::MemOutStream os;
457+ bmqu::MemOutStream os (&d_allocator) ;
457458
458459 os << " #### stats [delta = last "
459460 << d_sessionOptions.statsDumpInterval ().seconds () << " seconds] ####\n " ;
@@ -482,8 +483,8 @@ void Application::printStats(bool isFinal)
482483 os << " ::::: TCP Channels >>" ;
483484 if (isFinal) {
484485 // For the final stats, no need to print the 'delta' columns
485- bmqst::Table table;
486- bmqst::BasicTableInfoProvider tip;
486+ bmqst::Table table (&d_allocator) ;
487+ bmqst::BasicTableInfoProvider tip (&d_allocator) ;
487488 bmqio::StatChannelFactoryUtil::initializeStatsTable (
488489 &table,
489490 &tip,
@@ -577,14 +578,15 @@ Application::Application(
577578 bmqp::BlobPoolUtil::createBlobPool (&d_blobBufferFactory,
578579 d_allocators.get(" BlobSpPool" )))
579580, d_scheduler(bsls::SystemClockType::e_MONOTONIC, &d_allocator)
580- , d_channelFactory(ntcCreateInterfaceConfig(sessionOptions, allocator ),
581+ , d_channelFactory(ntcCreateInterfaceConfig(sessionOptions, &d_allocator ),
581582 &d_blobBufferFactory,
582- allocator )
583+ &d_allocator )
583584, d_resolvingChannelFactory(
584585 bmqio::ResolvingChannelFactoryConfig (
585586 &d_channelFactory,
586587 bmqex::ExecutionPolicyUtil::oneWay ().alwaysBlocking().useExecutor(
587- bmqex::SystemExecutor ())),
588+ bmqex::SystemExecutor ()),
589+ allocator),
588590 allocator)
589591, d_reconnectingChannelFactory(
590592 bmqio::ReconnectingChannelFactoryConfig (&d_resolvingChannelFactory,
0 commit comments