Fix leak in Creational - Factory_method