summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-08 21:05:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-08 21:05:32 +0000
commit46eb3d8d2886cbe007f6b7768d6d9158ab15b65a (patch)
tree0a0b7cacf5c1869b4942113ddbf8a8550ca5cb93
parentdfeb954af67ef32a52552cad7f4a77ecebc3e845 (diff)
downloaddrakx-46eb3d8d2886cbe007f6b7768d6d9158ab15b65a.tar
drakx-46eb3d8d2886cbe007f6b7768d6d9158ab15b65a.tar.gz
drakx-46eb3d8d2886cbe007f6b7768d6d9158ab15b65a.tar.bz2
drakx-46eb3d8d2886cbe007f6b7768d6d9158ab15b65a.tar.xz
drakx-46eb3d8d2886cbe007f6b7768d6d9158ab15b65a.zip
ugly workaround perl bug ([ID 20010908.008] memory leak with nested subs)
-rw-r--r--perl-install/interactive.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index e8ef2d944..bd8d4ed7a 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -290,7 +290,9 @@ sub ask_from_ {
ask_from_normalize($o, $common, $l);
@$l or return 1;
- $o->ask_fromW($common, [ grep { !$_->{advanced} } @$l ], [ grep { $_->{advanced} } @$l ]);
+ my $v = $o->ask_fromW($common, [ grep { !$_->{advanced} } @$l ], [ grep { $_->{advanced} } @$l ]);
+ %$common = ();
+ $v;
}
sub ask_from_no_check {
my ($o, $common, $l) = @_;