PR26578, memory leak in parse_gnu_debugaltlink
authorAlan Modra <amodra@gmail.com>
Wed, 9 Sep 2020 07:08:36 +0000 (16:38 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Sep 2020 07:08:36 +0000 (16:38 +0930)
commitdfbee68088e822453fdc82f6b8a3a5bc468944b1
treea53205834f25a35b1a2b85f3f7362f59b79d96f7
parentfb7331ae2b551247a33e8da5387ebc910c4a7308
PR26578, memory leak in parse_gnu_debugaltlink

The associated check function doesn't do anything with its "data"
param, so nothing to adjust there.

PR 26578
* dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
(load_separate_debug_files): Use a stack var for build_id_data.
binutils/ChangeLog
binutils/dwarf.c