Memory management bug fixed

Bug about the array of character's memory management fixed