[Libreoffice-commits] core.git: sal/qa

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 1 08:54:09 UTC 2021


 sal/qa/osl/socket.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 313eaf979ea2d69e4ffa88a5e87cc09ffe0ff088
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Jun 1 09:45:09 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
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 <noel.grandin at collabora.co.uk>

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);
     }
 };
 


More information about the Libreoffice-commits mailing list