Declare freeGCharArray as static.