Removed unnecessary allocation in main