]> granicus.if.org Git - yasm/commitdiff
gas-parse.c: Fix double-free on error.
authorPeter Johnson <peter@tortall.net>
Wed, 24 Dec 2008 06:17:54 +0000 (06:17 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 24 Dec 2008 06:17:54 +0000 (06:17 -0000)
svn path=/trunk/yasm/; revision=2163

modules/parsers/gas/gas-parse.c

index de46afffc0e2f2530db2fd9cad81e6e59a26995e..e3bd6f7a6a47e3d38d6e071634509ce4a01caee2 100644 (file)
@@ -1467,7 +1467,6 @@ parse_expr2(yasm_parser_gas *parser_gas)
                 if (!expect(ID)) {
                     yasm_error_set(YASM_ERROR_SYNTAX,
                                    N_("expected identifier after `@'"));
-                    yasm_xfree(name);
                     return NULL;
                 }
                 wrt = yasm_objfmt_get_special_sym(p_object, ID_val, "gas");