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

Caolán McNamara caolanm at redhat.com
Thu Jul 23 04:11:51 PDT 2015


 sal/osl/unx/random.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit a5f82cf7eb393d0c4265e4876b155dc875a05f43
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jul 23 12:09:39 2015 +0100

    coverity#1312138 Resource leak
    
    Change-Id: Ib3f5665f336fb933fbfa88a1032d76d881b38196

diff --git a/sal/osl/unx/random.cxx b/sal/osl/unx/random.cxx
index 2830daa..04333a2 100644
--- a/sal/osl/unx/random.cxx
+++ b/sal/osl/unx/random.cxx
@@ -27,6 +27,7 @@ int osl_get_system_random_data(char* buffer, size_t desired_len)
             {
                 if (errno != EINTR)
                 {
+                    close(fd);
                     return false;
                 }
             }


More information about the Libreoffice-commits mailing list