PV Plugin Loader resource leaks (doesn't close dynamic library)
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
running with valgrind I see a bunch of leaks coming from
vtkPVPluginLoader::SetFileName
where vtkDynamicLoader::OpenLibrary is called. if the call is successful , vtkDynamicLoader::CloseLibrary is never called later. This introduces a bunch of memory leaks (which at the very least confound finding more serious leaks in valgrind output).
The right thing to do is always call vtkDynamicLoader::CloseLibrary at some point after the library is no longer needed.
A typical valgrind trace is included below.