projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
3070f6e
)
fix memory leak in C<local(*foo) = 'bar'>
Gurusamy Sarathy [Tue, 21 Jul 1998 00:37:32 +0000 (
00:37
+0000)]
p4raw-id: //depot/perl@1584
scope.c
patch
|
blob
|
blame
|
history
diff --git
a/scope.c
b/scope.c
index
4df5f2e
..
1008ab1
100644
(file)
--- a/
scope.c
+++ b/
scope.c
@@
-673,7
+673,7
@@
leave_scope(I32 base)
case SAVEt_GP: /* scalar reference */
ptr = SSPOPPTR;
gv = (GV*)SSPOPPTR;
- if (SvPOK(gv) && SvLEN(gv) > 0) {
+ if (SvPVX(gv) && SvLEN(gv) > 0) {
Safefree(SvPVX(gv));
}
SvPVX(gv) = (char *)SSPOPPTR;