From 73af7eeb5a583a94c41c3fd88d150adf3efc9063 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 5 Jun 2023 13:49:11 +0200 Subject: [PATCH] [EDF27816] : in case of UsingPythonCache disabled (default) all temporary variables are removed. --- src/runtime/PythonNode.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/PythonNode.cxx b/src/runtime/PythonNode.cxx index 59f5a3a73..77cb39fc1 100644 --- a/src/runtime/PythonNode.cxx +++ b/src/runtime/PythonNode.cxx @@ -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 ) { -- 2.30.2