Salome HOME
[EDF27816] : in case of UsingPythonCache disabled (default) all temporary variables...
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 5 Jun 2023 11:49:11 +0000 (13:49 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 5 Jun 2023 11:49:11 +0000 (13:49 +0200)
src/runtime/PythonNode.cxx

index 59f5a3a73e51f224a5fcc52003d18c3c05f9030e..77cb39fc1efa5dde6feba3878e573f785fb4108a 100644 (file)
@@ -488,6 +488,8 @@ void PythonNode::executeRemote()
       //serializationInput and serializationInputCorba are no more needed for server. Release it.
       serializationInput.set(nullptr);
       resultCorba.reset( _pynode->executeSecond(myseq) );
+      if( ! this->isUsingPythonCache() )
+        _pynode->removeAllVarsInContext();
     }
   catch( const SALOME::SALOME_Exception& ex )
     {