diff --git a/tests/host/common/include/UdpContext.h b/tests/host/common/include/UdpContext.h index e8ae9461e9..020407dbe9 100644 --- a/tests/host/common/include/UdpContext.h +++ b/tests/host/common/include/UdpContext.h @@ -44,7 +44,10 @@ class UdpContext _sock = mockUDPSocket(); } - ~UdpContext() { } + ~UdpContext() + { + disconnect(); + } void ref() {