Fix mem leak in rz_getPropertyNames.

Recreated to go into development instead of master.
True. Good catch. I'll add that.