Prevent segfault at the end of yast2 run

It is caused by order of deallocation after program end where path is already
deallocated even if there is already instance pointing to it.