Remove const so return value can be freed.