summaryrefslogtreecommitdiff
path: root/sal/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-01 09:45:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-01 10:53:28 +0200
commit313eaf979ea2d69e4ffa88a5e87cc09ffe0ff088 (patch)
tree95541331f24465d11870037fd3b87270e5383222 /sal/qa
parent63b00ec7d8d140853feb7108a788bfc4f0c79db6 (diff)
fix leak in SocketTest
Change-Id: I8c5e2d4c4687beab08876fe3e945d19a1629bc36 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116514 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/qa')
-rw-r--r--sal/qa/osl/socket.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/qa/osl/socket.cxx b/sal/qa/osl/socket.cxx
index 813702f4ca21..ed31c9ede7ae 100644
--- a/sal/qa/osl/socket.cxx
+++ b/sal/qa/osl/socket.cxx
@@ -34,6 +34,7 @@ class SocketTest : public CppUnit::TestFixture
CPPUNIT_ASSERT_EQUAL(osl_Socket_Ok, res);
CPPUNIT_ASSERT_EQUAL(in, out);
CPPUNIT_ASSERT_EQUAL(sal_Int32(100), osl_getInetPortOfSocketAddr(addr));
+ osl_destroySocketAddr(addr);
}
void test_createInetBroadcastAddr()
@@ -47,6 +48,7 @@ class SocketTest : public CppUnit::TestFixture
CPPUNIT_ASSERT_EQUAL(osl_Socket_Ok, res);
CPPUNIT_ASSERT_EQUAL(OUString("123.255.255.255"), out);
CPPUNIT_ASSERT_EQUAL(sal_Int32(100), osl_getInetPortOfSocketAddr(addr));
+ osl_destroySocketAddr(addr);
}
};