1. cluster seems to have a memory leak, put DESTROY functions in where
[spider.git] / perl / DXCluster.pm
index c0ec375a88f56eabc3fe39e2fce91417564ae0af..aee8fe4d94a0c6a0e1c192fb1d94d836b705edd1 100644 (file)
@@ -136,12 +136,6 @@ sub cluster
        return " $DXNode::nodes nodes, $users local / $tot total users  Max users $DXNode::maxusers  Uptime $uptime";
 }
 
-#sub DESTROY
-#{
-#      my $self = shift;
-#      dbg('cluster', "destroying $self->{call}\n");
-#}
-
 no strict;
 sub AUTOLOAD
 {
@@ -303,5 +297,13 @@ sub dolist
 {
 
 }
+
+sub DESTROY
+{
+       my $self = shift;
+       undef $self->{list} if $self->{list};
+}
+
+
 1;
 __END__