Fix mem leak in rz_getPropertyNames.

Recreated to go into development instead of master.