s must not be freed, removed space in exc msg

This commit is contained in:
Cremno
2013-02-19 17:58:36 +01:00
parent e4bebad82d
commit e8de677338
+1 -2
View File
@@ -3461,9 +3461,8 @@ parse_string(parser_state *p, int term)
pushback(p, c);
if (toklen(p)) {
char msg[128];
free(s);
tokfix(p);
snprintf(msg, sizeof(msg), "unknown regexp option %s - %s",
snprintf(msg, sizeof(msg), "unknown regexp option%s - %s",
toklen(p) > 1 ? "s" : "", tok(p));
yyerror(p, msg);
}