aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-function.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-04-19 14:42:23 +0930
committerAlan Modra <amodra@gmail.com>2025-04-21 09:02:28 +0930
commit7dc5df8e5d374fa6fec2f2a6b7d1bbc258095d47 (patch)
treeac6a99469e9f961c17478a1273c95fb47c6f80f5 /gdb/python/py-function.c
parentd2533f464f4657b342f86a0ab9d82da61e63de93 (diff)
downloadbinutils-7dc5df8e5d374fa6fec2f2a6b7d1bbc258095d47.zip
binutils-7dc5df8e5d374fa6fec2f2a6b7d1bbc258095d47.tar.gz
binutils-7dc5df8e5d374fa6fec2f2a6b7d1bbc258095d47.tar.bz2
bfd_check_format_matches error paths
Tidy early out errors which didn't free matching_vector. Don't bfd_preserve_restore if we get to err_ret from the first bfd_preserve_save, which might fail from a memory allocation leaving preserve.marker NULL. Also take bfd_lock a little earlier before modifying abfd->format to simplify error return path from a lock failure.
Diffstat (limited to 'gdb/python/py-function.c')
0 files changed, 0 insertions, 0 deletions