fix rpath string memory leak on failed dlopen