]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Avoid an allocation in attr_to_dynamic_prop
authorTom Tromey <tom@tromey.com>
Fri, 2 Feb 2024 01:56:43 +0000 (18:56 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 5 Feb 2024 19:12:18 +0000 (12:12 -0700)
commit4b858d4dbbdc2d497231d6340a49414c88db7dbb
treea787975b8955035e3b44468bb11a028671e7fd00
parent9c0aa4c53104b1c4333d55aeaf11b41053307929
Avoid an allocation in attr_to_dynamic_prop

I noticed that attr_to_dynamic_prop allocates a dwarf_block, when no
allocation is required.  This patch stack-allocates the object
instead.

Reviewed-By: Tom de Vries <tdevries@suse.de>
gdb/dwarf2/read.c