]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
dlltool invalid free
authorAlan Modra <amodra@gmail.com>
Tue, 10 Jun 2025 13:27:46 +0000 (22:57 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Jun 2025 21:56:07 +0000 (07:26 +0930)
commit9efb7cdef40b3df83a1ec3cdbda882b1a626bb0e
tree167b275db8a072d4a1a35a8d25865cca5a07930e
parent2c0e910caf1d1b91ee457410249d023dc79d196e
dlltool invalid free

This is a followup to commt 619f863c55ca "dlltool memory leaks".
The name passed to def_name is freed, so if missing we can't just
use "".  strdup it.

* defparse.y (opt_name): xstrdup empty string.
binutils/defparse.y