From 1eb7bac0991faca40f0f42308f727aa30ab20f8d Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Wed, 19 Jul 2023 12:04:11 +0200 Subject: [PATCH] wifi: Fix valgrind issue with TidToLinkMappingElementTest --- src/wifi/test/wifi-eht-info-elems-test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wifi/test/wifi-eht-info-elems-test.cc b/src/wifi/test/wifi-eht-info-elems-test.cc index 49e7a0567..2897cd0da 100644 --- a/src/wifi/test/wifi-eht-info-elems-test.cc +++ b/src/wifi/test/wifi-eht-info-elems-test.cc @@ -23,6 +23,7 @@ #include "ns3/mgt-headers.h" #include "ns3/multi-link-element.h" #include "ns3/reduced-neighbor-report.h" +#include "ns3/simulator.h" #include "ns3/tid-to-link-mapping-element.h" #include "ns3/wifi-phy-operating-channel.h" #include "ns3/wifi-utils.h" @@ -1280,6 +1281,8 @@ void TidToLinkMappingElementTest::DoRun() { TestHeaderSerialization(m_tidToLinkMapping); + + Simulator::Destroy(); } /**