From 355fb8230bf26a5a142857fdee2520fd0a29052b Mon Sep 17 00:00:00 2001 From: "Hintz Martin (CC-AD/ESW1)" Date: Fri, 11 Dec 2020 09:59:32 +0100 Subject: [PATCH] iox-#252 Fix segfault Signed-off-by: Hintz Martin (CC-AD/ESW1) --- tools/introspection/source/introspection_app.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/introspection/source/introspection_app.cpp b/tools/introspection/source/introspection_app.cpp index 26f23daf11..02359ecdfe 100644 --- a/tools/introspection/source/introspection_app.cpp +++ b/tools/introspection/source/introspection_app.cpp @@ -692,9 +692,7 @@ void IntrospectionApp::runIntrospection(const iox::units::Duration updatePeriodM prettyPrint("### MemPool Status ###\n\n", PrettyOptions::highlight); memPoolSubscriber.take().and_then( - [&](iox::popo::Sample& sample) { - memPoolSample = sample; - }); + [&](iox::popo::Sample& sample) { memPoolSample = sample; }); if (memPoolSample) { @@ -702,7 +700,6 @@ void IntrospectionApp::runIntrospection(const iox::units::Duration updatePeriodM { printMemPoolInfo(i); } - printProcessIntrospectionData(processSample.value().get()); } else {