Skip to content

Commit

Permalink
iox-eclipse-iceoryx#252 Fix segfault
Browse files Browse the repository at this point in the history
Signed-off-by: Hintz Martin (CC-AD/ESW1) <[email protected]>
  • Loading branch information
marthtz committed Dec 11, 2020
1 parent 53d1fa3 commit 355fb82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/introspection/source/introspection_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,17 +692,14 @@ void IntrospectionApp::runIntrospection(const iox::units::Duration updatePeriodM
prettyPrint("### MemPool Status ###\n\n", PrettyOptions::highlight);

memPoolSubscriber.take().and_then(
[&](iox::popo::Sample<const MemPoolIntrospectionInfoContainer>& sample) {
memPoolSample = sample;
});
[&](iox::popo::Sample<const MemPoolIntrospectionInfoContainer>& sample) { memPoolSample = sample; });

if (memPoolSample)
{
for (const auto& i : *(memPoolSample.value().get()))
{
printMemPoolInfo(i);
}
printProcessIntrospectionData(processSample.value().get());
}
else
{
Expand Down

0 comments on commit 355fb82

Please sign in to comment.