Fix problems in CTF handling code exposed by the Coverity static analysis tool.
authorNick Clifton <nickc@redhat.com>
Wed, 22 Jul 2020 15:07:48 +0000 (16:07 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 22 Jul 2020 15:07:48 +0000 (16:07 +0100)
commitdf16e041deafa1d7fe7d8e65c02213b885c60a8e
treee70b7fb09d95c52f99cdc93a4345a6c6b4c6bd3c
parenta7b4ff4f0a0e503414b6b9a4184365fdb1f00fbe
Fix problems in CTF handling code exposed by the Coverity static analysis tool.

readelf * readelf.c (parse_args): Silence potential warnings about a
memory resource leak when allocating space for ctf option values.
(dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
variable.

libctf * ctf-archive.c (ctf_arc_write): Avoid calling close twice on the
same file descriptor.
binutils/ChangeLog
binutils/readelf.c
libctf/ChangeLog
libctf/ctf-archive.c