mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
dlltool invalid free
This is a followup to commt 619f863c55 "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.
This commit is contained in:
@@ -213,7 +213,7 @@ opt_name2: ID { $$ = $1; }
|
||||
}
|
||||
;
|
||||
opt_name: opt_name2 { $$ =$1; }
|
||||
| { $$=""; }
|
||||
| { $$ = xstrdup (""); }
|
||||
;
|
||||
|
||||
opt_ordinal:
|
||||
|
||||
Reference in New Issue
Block a user