Coverity: Resource leak (RESOURCE_LEAK)
6. leaked_storage: Variable "from_path" going out of scope leaks the
storage it points to.

Don't leak memory if the second __wt_filename() call fails.
Coverity: Resource leak (RESOURCE_LEAK)
9. leaked_storage: Variable "path" going out of scope leaks the storage
it points to.

Don't return after allocating the path.
Cleanup up a set of allocations that were never checked for failure.
Coverity: Double lock (LOCK)
9. double_lock: "__wt_spin_lock(WT_SESSION_IMPL *, WT_SPINLOCK *)" locks
"((WT_CONNECTION_IMPL *)session->iface.connection)->schema_lock.lock" twice.