]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
readelf: replace xmalloc with malloc in slurp_relr_relocs
authorMarcus Nilsson <brainbomb@gmail.com>
Wed, 22 Jun 2022 08:36:03 +0000 (10:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Jun 2022 08:36:03 +0000 (10:36 +0200)
commit4491a7c1aa356887a783c451a5e6cc708112b483
tree4a13c268d4b2fa03b665c658a56e0f037312b4ba
parent46439c90f2000edcb300c85ed843f8930752aed5
readelf: replace xmalloc with malloc in slurp_relr_relocs

Using xmalloc makes the null check redundant since failing allocation
will exit the program. Instead use malloc and let the error be
conveyed up the call chain.
binutils/ChangeLog
binutils/readelf.c