COMP: ObjectFactoryBase memory leak.
COMP: ObjectFactoryBase memory leak.

LoadLibrariesInPath was not closing the library after a failing to
find a symbol in a library, causing a memory leak.

In the past, some platforms crashed if DynamicLoader::CloseLibrary was
called. This patch is intended to see if any current ITK4 platforms
crash. If there are some platforms that still crash we may be able to
ifdef the call to DynamicLoader::CloseLibrary.

Change-Id: I4905f96df8c739219869e2b8a24f5e08e19606b9

richardbeare/ITK,zachary-williamson/ITK,vfonov/ITK,ajjl/ITK,eile/ITK,eile/ITK,daviddoria/itkHoughTransform,atsnyder/ITK,malaterre/ITK,stnava/ITK,CapeDrew/DITK,spinicist/ITK,InsightSoftwareConsortium/ITK,PlutoniumHeart/ITK,jmerkow/ITK,spinicist/ITK,wkjeong/ITK,fbudin69500/ITK,paulnovo/ITK,LucasGandel/ITK,blowekamp/ITK,hjmjohnson/ITK,LucasGandel/ITK,eile/ITK,vfonov/ITK,jcfr/ITK,CapeDrew/DITK,itkvideo/ITK,itkvideo/ITK,daviddoria/itkHoughTransform,eile/ITK,jcfr/ITK,rhgong/itk-with-dom,thewtex/ITK,CapeDrew/DCMTK-ITK,PlutoniumHeart/ITK,biotrump/ITK,GEHC-Surgery/ITK,BRAINSia/ITK,LucHermitte/ITK,cpatrick/ITK-RemoteIO,wkjeong/ITK,eile/ITK,jcfr/ITK,itkvideo/ITK,paulnovo/ITK,eile/ITK,BlueBrain/ITK,Kitware/ITK,daviddoria/itkHoughTransform,hinerm/ITK,hjmjohnson/ITK,blowekamp/ITK,BRAINSia/ITK,atsnyder/ITK,BlueBrain/ITK,zachary-williamson/ITK,spinicist/ITK,paulnovo/ITK,fuentesdt/InsightToolkit-dev,daviddoria/itkHoughTransform,heimdali/ITK,atsnyder/ITK,stnava/ITK,msmolens/ITK,spinicist/ITK,fbudin69500/ITK,LucHermitte/ITK,fedral/ITK,PlutoniumHeart/ITK,spinicist/ITK,CapeDrew/DCMTK-ITK,LucasGandel/ITK,eile/ITK,spinicist/ITK,biotrump/ITK,malaterre/ITK,richardbeare/ITK,vfonov/ITK,LucHermitte/ITK,atsnyder/ITK,heimdali/ITK,BlueBrain/ITK,Kitware/ITK,cpatrick/ITK-RemoteIO,ajjl/ITK,ajjl/ITK,BlueBrain/ITK,CapeDrew/DCMTK-ITK,malaterre/ITK,msmolens/ITK,hinerm/ITK,itkvideo/ITK,thewtex/ITK,Kitware/ITK,wkjeong/ITK,hjmjohnson/ITK,CapeDrew/DITK,msmolens/ITK,PlutoniumHeart/ITK,atsnyder/ITK,PlutoniumHeart/ITK,CapeDrew/DCMTK-ITK,richardbeare/ITK,BlueBrain/ITK,InsightSoftwareConsortium/ITK,cpatrick/ITK-RemoteIO,stnava/ITK,GEHC-Surgery/ITK,zachary-williamson/ITK,itkvideo/ITK,atsnyder/ITK,itkvideo/ITK,jcfr/ITK,jmerkow/ITK,cpatrick/ITK-RemoteIO,CapeDrew/DITK,daviddoria/itkHoughTransform,hinerm/ITK,LucHermitte/ITK,rhgong/itk-with-dom,fbudin69500/ITK,Kitware/ITK,zachary-williamson/ITK,CapeDrew/DCMTK-ITK,rhgong/itk-with-dom,thewtex/ITK,wkjeong/ITK,heimdali/ITK,LucHermitte/ITK,malaterre/ITK,biotrump/ITK,malaterre/ITK,fuentesdt/InsightToolkit-dev,InsightSoftwareConsortium/ITK,wkjeong/ITK,blowekamp/ITK,jmerkow/ITK,GEHC-Surgery/ITK,jmerkow/ITK,thewtex/ITK,Kitware/ITK,BRAINSia/ITK,cpatrick/ITK-RemoteIO,CapeDrew/DCMTK-ITK,eile/ITK,thewtex/ITK,GEHC-Surgery/ITK,biotrump/ITK,blowekamp/ITK,heimdali/ITK,LucHermitte/ITK,BlueBrain/ITK,biotrump/ITK,fbudin69500/ITK,fedral/ITK,hendradarwin/ITK,stnava/ITK,heimdali/ITK,InsightSoftwareConsortium/ITK,atsnyder/ITK,BRAINSia/ITK,zachary-williamson/ITK,fuentesdt/InsightToolkit-dev,blowekamp/ITK,hjmjohnson/ITK,jcfr/ITK,thewtex/ITK,hjmjohnson/ITK,richardbeare/ITK,biotrump/ITK,malaterre/ITK,heimdali/ITK,GEHC-Surgery/ITK,CapeDrew/DCMTK-ITK,InsightSoftwareConsortium/ITK,ajjl/ITK,PlutoniumHeart/ITK,biotrump/ITK,jcfr/ITK,itkvideo/ITK,daviddoria/itkHoughTransform,wkjeong/ITK,stnava/ITK,rhgong/itk-with-dom,itkvideo/ITK,fuentesdt/InsightToolkit-dev,CapeDrew/DITK,fuentesdt/InsightToolkit-dev,fbudin69500/ITK,daviddoria/itkHoughTransform,rhgong/itk-with-dom,fedral/ITK,fedral/ITK,BRAINSia/ITK,thewtex/ITK,stnava/ITK,fbudin69500/ITK,vfonov/ITK,blowekamp/ITK,hendradarwin/ITK,hinerm/ITK,zachary-williamson/ITK,eile/ITK,fedral/ITK,CapeDrew/DITK,hinerm/ITK,richardbeare/ITK,malaterre/ITK,hendradarwin/ITK,itkvideo/ITK,fuentesdt/InsightToolkit-dev,spinicist/ITK,jmerkow/ITK,Kitware/ITK,hendradarwin/ITK,stnava/ITK,GEHC-Surgery/ITK,malaterre/ITK,Kitware/ITK,msmolens/ITK,LucasGandel/ITK,blowekamp/ITK,CapeDrew/DITK,malaterre/ITK,vfonov/ITK,BlueBrain/ITK,ajjl/ITK,BlueBrain/ITK,cpatrick/ITK-RemoteIO,LucHermitte/ITK,stnava/ITK,ajjl/ITK,hinerm/ITK,wkjeong/ITK,fuentesdt/InsightToolkit-dev,spinicist/ITK,msmolens/ITK,hendradarwin/ITK,msmolens/ITK,fedral/ITK,fedral/ITK,zachary-williamson/ITK,fbudin69500/ITK,InsightSoftwareConsortium/ITK,rhgong/itk-with-dom,richardbeare/ITK,msmolens/ITK,fbudin69500/ITK,LucasGandel/ITK,vfonov/ITK,jmerkow/ITK,wkjeong/ITK,daviddoria/itkHoughTransform,daviddoria/itkHoughTransform,hinerm/ITK,CapeDrew/DITK,paulnovo/ITK,hinerm/ITK,jcfr/ITK,PlutoniumHeart/ITK,vfonov/ITK,CapeDrew/DCMTK-ITK,jcfr/ITK,paulnovo/ITK,fedral/ITK,heimdali/ITK,msmolens/ITK,GEHC-Surgery/ITK,fuentesdt/InsightToolkit-dev,stnava/ITK,zachary-williamson/ITK,hendradarwin/ITK,atsnyder/ITK,paulnovo/ITK,hjmjohnson/ITK,vfonov/ITK,InsightSoftwareConsortium/ITK,hinerm/ITK,blowekamp/ITK,rhgong/itk-with-dom,LucasGandel/ITK,zachary-williamson/ITK,hendradarwin/ITK,biotrump/ITK,PlutoniumHeart/ITK,paulnovo/ITK,hjmjohnson/ITK,paulnovo/ITK,rhgong/itk-with-dom,CapeDrew/DITK,cpatrick/ITK-RemoteIO,atsnyder/ITK,vfonov/ITK,LucasGandel/ITK,heimdali/ITK,BRAINSia/ITK,jmerkow/ITK,richardbeare/ITK,LucasGandel/ITK,CapeDrew/DCMTK-ITK,ajjl/ITK,hendradarwin/ITK,fuentesdt/InsightToolkit-dev,jmerkow/ITK,BRAINSia/ITK,GEHC-Surgery/ITK,cpatrick/ITK-RemoteIO,LucHermitte/ITK,spinicist/ITK,ajjl/ITK