Work with malloc / free / realloc functions