]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commit
Don't rely on being able to access the old context in su_uplevel_restore()
authorVincent Pit <vince@profvince.com>
Tue, 13 Sep 2011 21:10:36 +0000 (23:10 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 13 Sep 2011 21:26:11 +0000 (23:26 +0200)
commit0c640ded3d3d3939e6fb99c3a94c6bf6e54a360a
treef975eb400f00aa21a1778baf78abc5a26d0e1690
parent0f722a753fb30ba5c163c5efccce6b3865a58d07
Don't rely on being able to access the old context in su_uplevel_restore()

It will be overwritten if the callback gotos into another subroutine.
This also fixes "Attempt to free unreferenced scalar" warning when the
debugger is enabled.
Upper.xs
t/60-uplevel-target.t