From: Ralf Wildenhues Date: Thu, 30 Aug 2007 18:23:24 +0000 (+0000) Subject: * libltdl/ltdl.c (parse_dotla_file): If we run out of memory, X-Git-Tag: release-2-1b~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7b428d2d9c88e4422a156943b65904f6017d1c8;p=thirdparty%2Flibtool.git * 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. --- 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; }