[RFR] Fixing global leaks on "name"

Variable "name" is not declared.