summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-06 16:32:36 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-06 16:32:36 +0000
commitc4db126b6e2732a51225d9d720364b1178c8ec7b (patch)
tree8090bf2fa59b5264c7ce9b9da657f81e7ed8cee5
parentb9d78af1544ae2bf4b441bf0516a564fbbd2517f (diff)
downloadperl-c4db126b6e2732a51225d9d720364b1178c8ec7b.tar.gz
The scratch scalar used in -d processing for : and = options would leak
as it was never freed. p4raw-id: //depot/perl@32052
-rw-r--r--perl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index b8096c2da4..3371b84d9d 100644
--- a/perl.c
+++ b/perl.c
@@ -3041,6 +3041,7 @@ Perl_moreswitches(pTHX_ char *s)
}
s += strlen(s);
my_setenv("PERL5DB", SvPV_nolen_const(sv));
+ SvREFCNT_dec(sv);
}
if (!PL_perldb) {
PL_perldb = PERLDB_ALL;