all repos — mgba @ b89d6216ac417af50e575e237e02b874c0dfe865

mGBA Game Boy Advance Emulator

Free identifiers
Jeffrey Pfau jeffrey@endrift.com
Sat, 12 Jul 2014 17:13:58 -0700
commit

b89d6216ac417af50e575e237e02b874c0dfe865

parent

ce1dd4416fe35eac00ecadd363f26979da960d93

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/debugger/parser.csrc/debugger/parser.c

@@ -289,5 +289,9 @@ }

parseFree(tree->lhs); parseFree(tree->rhs); + + if (tree->token.type == TOKEN_IDENTIFIER_TYPE) { + free(tree->token.identifierValue); + } free(tree); }