Removed ~500bytes memoryleaks