I am using SOAP::Lite for publishing some information from many nodes to a single server periodically. The problem is that for each piece of information I am creating an instance of SOAP::Lite object using
$gv_service = SOAP::Lite->service($CONF_SERVER_WSDL)
this variable is local to a function and its scope ends with the function.
I am doing this with every call of "myfunction". This is done to get the latest description of the function.
But what I am observing is a memory leak. Since the program is a daemon and polls for an event and sleeps, this memory leak eats up the memory.
I tried to find out if there is some method to free the memory allocated by the SOAP::Lite during initialisation.