sal/qa/osl/socket.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 313eaf979ea2d69e4ffa88a5e87cc09ffe0ff088
Author: Noel Grandin <[email protected]>
AuthorDate: Tue Jun 1 09:45:09 2021 +0200
Commit: Noel Grandin <[email protected]>
CommitDate: Tue Jun 1 10:53:28 2021 +0200
fix leak in SocketTest
Change-Id: I8c5e2d4c4687beab08876fe3e945d19a1629bc36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116514
Tested-by: Jenkins
Reviewed-by: Noel Grandin <[email protected]>
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);
}
};
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits