Skip to content

Commit 54c8419

Browse files
committed
btl/vader: plug a memory leak
as reported by Coverity with CID 1362691 Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 773cad6 commit 54c8419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/btl/vader/btl_vader_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* All rights reserved.
1717
* Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
1818
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
19-
* Copyright (c) 2014 Research Organization for Information Science
19+
* Copyright (c) 2014-2016 Research Organization for Information Science
2020
* and Technology (RIST). All rights reserved.
2121
* $COPYRIGHT$
2222
*
@@ -377,7 +377,7 @@ static void mca_btl_vader_check_single_copy (void)
377377

378378
/* check system setting for current ptrace scope */
379379
fd = open ("/proc/sys/kernel/yama/ptrace_scope", O_RDONLY);
380-
if (0 < fd) {
380+
if (0 <= fd) {
381381
read (fd, &buffer, 1);
382382
close (fd);
383383
}

0 commit comments

Comments
 (0)