summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-02-20 23:15:27 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-02-20 23:15:27 +0900
commit7317ba97e2b14f9466514030e135e3c2064223d7 (patch)
tree25d7806a6983423738bd85bcecf2462750ed1fb1 /src
parent8b44e8dbd8a86466625fffa3f4f17f755f0de61a (diff)
parent1d40ae6c2461f2597577ed7e47e867c76f4982de (diff)
downloadmruby-7317ba97e2b14f9466514030e135e3c2064223d7.tar.gz
mruby-7317ba97e2b14f9466514030e135e3c2064223d7.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src')
-rw-r--r--src/parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parse.y b/src/parse.y
index 3f9e91b69..365bc5f18 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3462,9 +3462,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);
}