Removed explicit cast of malloc.