diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-23 12:09:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-23 12:09:39 +0100 |
commit | a5f82cf7eb393d0c4265e4876b155dc875a05f43 (patch) | |
tree | 689ba0c5055fd752064d3474806e360497706262 /sal/osl | |
parent | ba39c9dd6a990ebc6dcba8e472c0d7d213de9412 (diff) |
coverity#1312138 Resource leak
Change-Id: Ib3f5665f336fb933fbfa88a1032d76d881b38196
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/random.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sal/osl/unx/random.cxx b/sal/osl/unx/random.cxx index 2830daaa4ec6..04333a2f3b2b 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; } } |