diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-21 00:37:32 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-21 00:37:32 +0000 |
commit | ed6c1d6b44d8ffac74beba8dcd7c0393a8698b0d (patch) | |
tree | 9b97b831668d4238c9e835ab337cbd2ef9f3ef2f /scope.c | |
parent | 3070f6ec3ff16a55374e9cfa04154bb3486d1b59 (diff) | |
download | perl-ed6c1d6b44d8ffac74beba8dcd7c0393a8698b0d.tar.gz |
fix memory leak in C<local(*foo) = 'bar'>
p4raw-id: //depot/perl@1584
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |