ssh_get_hexa result freeing memory fixed