This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2e5629
)
DEBUG_LEAKING_SCALARS could use the value of a freed PL_op
author
Dave Mitchell
<davem@fdisolutions.com>
Tue, 19 Apr 2005 23:31:52 +0000
(23:31 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Tue, 19 Apr 2005 23:31:52 +0000
(23:31 +0000)
p4raw-id: //depot/perl@24255
op.c
patch
|
blob
|
blame
|
history
diff --git
a/op.c
b/op.c
index
a226aad
..
8264232
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-313,6
+313,10
@@
Perl_op_free(pTHX_ OP *o)
op_clear(o);
FreeOp(o);
+#ifdef DEBUG_LEAKING_SCALARS
+ if (PL_op == o)
+ PL_op = Nullop;
+#endif
}
void