mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Fix memory leak if masm mode enabled in parsers (#239)
This commit is contained in:
parent
dfc1c9e841
commit
721134a8ae
1 changed files with 1 additions and 0 deletions
|
|
@ -966,6 +966,7 @@ parse_operand(yasm_parser_nasm *parser_nasm)
|
|||
unsigned int size = SIZE_OVERRIDE_val;
|
||||
get_next_token();
|
||||
if (parser_nasm->masm && curtok == ID && !yasm__strcasecmp(ID_val, "ptr")) {
|
||||
destroy_curtok();
|
||||
get_next_token();
|
||||
}
|
||||
op = parse_operand(parser_nasm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue