Fixes in library_clone

We never set pathname of the clone and instead cloned pathname to soname.
Also, initialize ->next of the last symbol in chain as well.
1 file changed