This leaks.

Also, I would normally use a StringAttr as a member and say name.set(_name);

simpler, and fixes the leak.