Removed potential memoryleak.