data tree BUGFIX freeing data in memory reallocation
data tree BUGFIX freeing data in memory reallocation

ly_realloc() to be used to simplify loops starting by malloc and continuing
by realloc(). However, in case we start with memory from somewhere else,
standard realloc is supposed to be used (as in this case) to do not destroy
original memory.

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