cppcheck performance fixes in cores/dllloader/
Merge pull request #5998 from tobbi/cppcheck_perf_cores_dllloader

cppcheck performance fixes in cores/dllloader/