fixed memory leak in ints2int
add message pointer validation