Coverity: Fixed resource leak of memory when the alternative directory was tried for loading the dll.
Coverity scan: free the temporary path to the fmu.
Coverity scan: Fix for too_many_printf_args