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
28ccc664
Unverified
Commit
28ccc664
authored
Jan 01, 2022
by
Yukihiro "Matz" Matsumoto
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proc.c: should not reference `irep` when copying failed.
It may cause broken reference count numbers.
parent
3de9ddfb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/proc.c
src/proc.c
+3
-3
No files found.
src/proc.c
View file @
28ccc664
...
@@ -207,12 +207,12 @@ mrb_proc_copy(mrb_state *mrb, struct RProc *a, struct RProc *b)
...
@@ -207,12 +207,12 @@ mrb_proc_copy(mrb_state *mrb, struct RProc *a, struct RProc *b)
/* already initialized proc */
/* already initialized proc */
return
;
return
;
}
}
if
(
!
MRB_PROC_CFUNC_P
(
b
)
&&
b
->
body
.
irep
)
{
mrb_irep_incref
(
mrb
,
(
mrb_irep
*
)
b
->
body
.
irep
);
}
a
->
flags
=
b
->
flags
;
a
->
flags
=
b
->
flags
;
a
->
body
=
b
->
body
;
a
->
body
=
b
->
body
;
a
->
upper
=
b
->
upper
;
a
->
upper
=
b
->
upper
;
if
(
!
MRB_PROC_CFUNC_P
(
a
)
&&
a
->
body
.
irep
)
{
mrb_irep_incref
(
mrb
,
(
mrb_irep
*
)
a
->
body
.
irep
);
}
a
->
e
.
env
=
b
->
e
.
env
;
a
->
e
.
env
=
b
->
e
.
env
;
/* a->e.target_class = a->e.target_class; */
/* a->e.target_class = a->e.target_class; */
}
}
...
...
chen2022
@chen20220110
mentioned in commit
bee96654
·
Feb 16, 2022
mentioned in commit
bee96654
mentioned in commit bee9665400e12f01929524e3d1f3686e1e2e950d
Toggle commit list
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