From f7b428d2d9c88e4422a156943b65904f6017d1c8 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Thu, 30 Aug 2007 18:23:24 +0000 Subject: [PATCH] * libltdl/ltdl.c (parse_dotla_file): If we run out of memory, do not close the .la file twice. Coverity report CID 440 via Jeff Squyres. --- ChangeLog | 4 ++++ libltdl/ltdl.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9a35e48c9..5670dfc56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-08-30 Ralf Wildenhues + * libltdl/ltdl.c (parse_dotla_file): If we run out of memory, + do not close the .la file twice. + Coverity report CID 440 via Jeff Squyres. + * libltdl/ltdl.c (has_library_ext): Remove dead code. Coverity report CID 561 against Open MPI via Jeff Squyres. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index b1c3228a0..08027dbba 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1031,7 +1031,6 @@ parse_dotla_file(FILE *file, char **dlname, char **libdir, char **deplibs, line = REALLOC (char, line, line_len *2); if (!line) { - fclose (file); ++errors; goto cleanup; } -- 2.47.3