Removed useless memory allocation