xpath BUGFIX set casting read from freed memory
xpath BUGFIX set casting read from freed memory

lukasmacko/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,lukasmacko/libyang,PavolVican/libyang,PavolVican/libyang