Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
47413d05
Unverified
Commit
47413d05
authored
Jun 19, 2018
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Jun 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4046 from kou/fix-wrong-free-function
Fix wrong free function
parents
a9abf65f
fb935820
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+2
-2
mrbgems/mruby-io/src/file.c
mrbgems/mruby-io/src/file.c
+2
-2
mrbgems/mruby-io/src/io.c
mrbgems/mruby-io/src/io.c
+1
-1
No files found.
mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
View file @
47413d05
...
...
@@ -599,13 +599,13 @@ done:
/* warning */
char
*
msg
=
mrb_locale_from_utf8
(
parser
->
warn_buffer
[
0
].
message
,
-
1
);
printf
(
"line %d: %s
\n
"
,
parser
->
warn_buffer
[
0
].
lineno
,
msg
);
mrb_
utf8
_free
(
msg
);
mrb_
locale
_free
(
msg
);
}
if
(
0
<
parser
->
nerr
)
{
/* syntax error */
char
*
msg
=
mrb_locale_from_utf8
(
parser
->
error_buffer
[
0
].
message
,
-
1
);
printf
(
"line %d: %s
\n
"
,
parser
->
error_buffer
[
0
].
lineno
,
msg
);
mrb_
utf8
_free
(
msg
);
mrb_
locale
_free
(
msg
);
}
else
{
/* generate bytecode */
...
...
mrbgems/mruby-io/src/file.c
View file @
47413d05
...
...
@@ -310,7 +310,7 @@ mrb_file__gethome(mrb_state *mrb, mrb_value klass)
}
home
=
mrb_locale_from_utf8
(
home
,
-
1
);
path
=
mrb_str_new_cstr
(
mrb
,
home
);
mrb_
utf8
_free
(
home
);
mrb_
locale
_free
(
home
);
return
path
;
#else
argc
=
mrb_get_argc
(
mrb
);
...
...
@@ -327,7 +327,7 @@ mrb_file__gethome(mrb_state *mrb, mrb_value klass)
}
home
=
mrb_locale_from_utf8
(
home
,
-
1
);
path
=
mrb_str_new_cstr
(
mrb
,
home
);
mrb_
utf8
_free
(
home
);
mrb_
locale
_free
(
home
);
return
path
;
#endif
}
...
...
mrbgems/mruby-io/src/io.c
View file @
47413d05
...
...
@@ -780,7 +780,7 @@ reopen:
mrb_str_modify
(
mrb
,
mrb_str_ptr
(
emsg
));
mrb_sys_fail
(
mrb
,
RSTRING_PTR
(
emsg
));
}
mrb_
utf8
_free
(
fname
);
mrb_
locale
_free
(
fname
);
if
(
fd
<=
2
)
{
mrb_fd_cloexec
(
mrb
,
fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment