[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 08 Dec 2005 02:15:36 -0000


albertel		Wed Dec  7 21:15:36 2005 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - need to remove Math::Complex, this means of including it is causing over 600k of memory leakage per safe space initialization
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.391 loncom/xml/lonxml.pm:1.392
--- loncom/xml/lonxml.pm:1.391	Tue Dec  6 05:21:18 2005
+++ loncom/xml/lonxml.pm	Wed Dec  7 21:15:36 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.391 2005/12/06 10:21:18 albertel Exp $
+# $Id: lonxml.pm,v 1.392 2005/12/08 02:15:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -665,8 +665,6 @@
 
 sub init_safespace {
   my ($target,$safeeval,$safehole,$safeinit) = @_;
-  $safeeval->deny_only(':dangerous');
-  $safeeval->reval('use Math::Complex;');
   $safeeval->permit_only(":default");
   $safeeval->permit("entereval");
   $safeeval->permit(":base_math");